aboutsummaryrefslogtreecommitdiffstats
path: root/tests/api/api-seek-test.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2022-07-11 10:31:47 +0200
committerAnton Khirnov <anton@khirnov.net>2022-07-19 12:27:18 +0200
commit9c0401bd5901e9bb2cd492fafebd591bcfd77dac (patch)
treeb84a76d4085de280c796705f2d02fc6152c7fd06 /tests/api/api-seek-test.c
parentde3a135e0f3e5d2a35968ed32ae3f8a3b2852cee (diff)
downloadffmpeg-9c0401bd5901e9bb2cd492fafebd591bcfd77dac.tar.gz
tests/api: use AVFrame.duration instead of AVFrame.pkt_duration
Diffstat (limited to 'tests/api/api-seek-test.c')
-rw-r--r--tests/api/api-seek-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/api/api-seek-test.c b/tests/api/api-seek-test.c
index 696af9cdfc..e86908e285 100644
--- a/tests/api/api-seek-test.c
+++ b/tests/api/api-seek-test.c
@@ -156,7 +156,7 @@ static int compute_crc_of_packets(AVFormatContext *fmt_ctx, int video_stream,
}
av_frame_unref(fr);
}
- } while (result >= 0 && (no_seeking || (fr->pts + fr->pkt_duration <= ts_end)));
+ } while (result >= 0 && (no_seeking || (fr->pts + fr->duration <= ts_end)));
finish:
av_freep(&byte_buffer);