diff options
author | Muhammad Faiz <mfcc64@gmail.com> | 2017-04-22 15:59:09 +0700 |
---|---|---|
committer | Muhammad Faiz <mfcc64@gmail.com> | 2017-04-23 14:47:54 +0700 |
commit | cdd3048134b8b032b69d3c076d73d24e329dc9ba (patch) | |
tree | 5a23d1b6d10204843325d71c93965a277a9d7b88 /tests/api/api-seek-test.c | |
parent | 327a1c0dee05efff74b1fe18144a6543c44975fa (diff) | |
download | ffmpeg-cdd3048134b8b032b69d3c076d73d24e329dc9ba.tar.gz |
tests: do not use AVFrame accessor
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
Diffstat (limited to 'tests/api/api-seek-test.c')
-rw-r--r-- | tests/api/api-seek-test.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/api/api-seek-test.c b/tests/api/api-seek-test.c index 4fd1e6ea04..2b32cb9e4f 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); |