summaryrefslogtreecommitdiff
path: root/tests/api
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-12-06 14:07:42 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-12-06 15:42:07 +0100
commit7679c38b3b57125007aa67b009665c8d3e8d6bcc (patch)
tree92633425a382ea8f3451d762e83b3cefbd736cfc /tests/api
parent5952b8da0b7f65dfa23991e71737e0abdaeb339c (diff)
downloadffmpeg-7679c38b3b57125007aa67b009665c8d3e8d6bcc.tar.gz
tests/api/api-seek-test: check all compute_crc_of_packets() calls
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tests/api')
-rw-r--r--tests/api/api-seek-test.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/api/api-seek-test.c b/tests/api/api-seek-test.c
index 799187f93e..cc3287b28f 100644
--- a/tests/api/api-seek-test.c
+++ b/tests/api/api-seek-test.c
@@ -248,10 +248,11 @@ static int seek_test(const char *input_filename, const char *start, const char *
return -1;
for (i = start_ts; i < end_ts; i += 100) {
- for (j = i + 100; j < end_ts; j += 100)
- result = compute_crc_of_packets(fmt_ctx, video_stream, ctx, fr, i, j, 0);
- if (result != 0)
- return -1;
+ for (j = i + 100; j < end_ts; j += 100) {
+ result = compute_crc_of_packets(fmt_ctx, video_stream, ctx, fr, i, j, 0);
+ if (result != 0)
+ return -1;
+ }
}
av_freep(&crc_array);