X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=tests%2Fapi%2Fapi-seek-test.c;h=2b32cb9e4f382f4abe03b79e4ed050b64d37e3c3;hb=85452f9ab7aaa6417e8c8b1b2eb285e7dce55a9c;hp=4fd1e6ea045611660d624fee12fa595431dfbe31;hpb=bc94b9534cbe842204f5a440d05ffb10ff7629c3;p=ffmpeg diff --git a/tests/api/api-seek-test.c b/tests/api/api-seek-test.c index 4fd1e6ea045..2b32cb9e4f3 100644 --- a/tests/api/api-seek-test.c +++ b/tests/api/api-seek-test.c @@ -145,7 +145,7 @@ static int compute_crc_of_packets(AVFormatContext *fmt_ctx, int video_stream, } av_packet_unref(&pkt); av_init_packet(&pkt); - } while ((!end_of_stream || got_frame) && (no_seeking || (fr->pts + av_frame_get_pkt_duration(fr) <= ts_end))); + } while ((!end_of_stream || got_frame) && (no_seeking || (fr->pts + fr->pkt_duration <= ts_end))); av_packet_unref(&pkt); av_freep(&byte_buffer);