* rocDecode: Take care of the case where DecodeFrame() does not return 1 (decoded frame number) so the accumulated decoded frame number does not match the user targeted frame number and the decoding will not stop. (#257)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
4709c0981f
Коммит
320c0954a3
@@ -240,7 +240,7 @@ int main(int argc, char **argv) {
|
||||
auto time_per_decode = std::chrono::duration<double, std::milli>(end_time - start_time).count();
|
||||
total_dec_time += time_per_decode;
|
||||
n_frame += n_frame_returned;
|
||||
if (num_decoded_frames && num_decoded_frames == n_frame) {
|
||||
if (num_decoded_frames && num_decoded_frames <= n_frame) {
|
||||
break;
|
||||
}
|
||||
} while (n_video_bytes);
|
||||
|
||||
Ссылка в новой задаче
Block a user