* 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)
[ROCm/rocdecode commit: 320c0954a3]
This commit is contained in:
@@ -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);
|
||||
|
||||
Viittaa uudesa ongelmassa
Block a user