summaryrefslogtreecommitdiff
path: root/tests/api/api-seek-test.c
diff options
context:
space:
mode:
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);