summaryrefslogtreecommitdiff
path: root/tests
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
parentde3a135e0f3e5d2a35968ed32ae3f8a3b2852cee (diff)
tests/api: use AVFrame.duration instead of AVFrame.pkt_duration
Diffstat (limited to 'tests')
-rw-r--r--tests/api/api-h264-test.c2
-rw-r--r--tests/api/api-seek-test.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/api/api-h264-test.c b/tests/api/api-h264-test.c
index b9230c65cb..c89f1ba41a 100644
--- a/tests/api/api-h264-test.c
+++ b/tests/api/api-h264-test.c
@@ -154,7 +154,7 @@ static int video_decode_example(const char *input_filename)
return number_of_written_bytes;
}
printf("%d, %s, %s, %8"PRId64", %8d, 0x%08"PRIx32"\n", video_stream,
- av_ts2str(fr->pts), av_ts2str(fr->pkt_dts), fr->pkt_duration,
+ av_ts2str(fr->pts), av_ts2str(fr->pkt_dts), fr->duration,
number_of_written_bytes, av_adler32_update(0, (const uint8_t*)byte_buffer, number_of_written_bytes));
av_frame_unref(fr);
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);