summaryrefslogtreecommitdiff
path: root/tests/api
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2016-12-06 14:08:39 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2016-12-06 15:41:31 +0100
commit108db37586e4e5bb5ba0ea3b927d72bc4f25939b (patch)
treea862d5e1b42d81b1c15833ba4e23d3fbc6b51f59 /tests/api
parent9c1ccee7f840caa49d215e33c029bf0935b4ac29 (diff)
downloadffmpeg-108db37586e4e5bb5ba0ea3b927d72bc4f25939b.tar.gz
tests/api/api-seek-test: Fix use of uinitialized value
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'tests/api')
-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 8117df46fd..9544dfb298 100644
--- a/tests/api/api-seek-test.c
+++ b/tests/api/api-seek-test.c
@@ -129,7 +129,7 @@ static int compute_crc_of_packets(AVFormatContext *fmt_ctx, int video_stream,
av_log(NULL, AV_LOG_ERROR, "Can't copy image to buffer\n");
return number_of_written_bytes;
}
- if ((fr->pts > ts_end) && (!no_seeking))
+ if ((!no_seeking) && (fr->pts > ts_end))
break;
crc = av_adler32_update(0, (const uint8_t*)byte_buffer, number_of_written_bytes);
printf("%10"PRId64", 0x%08lx\n", fr->pts, crc);