[FFmpeg-cvslog] tests/api/api-seek-test: Fix use of uinitialized value
Michael Niedermayer
git at videolan.org
Tue Dec 6 17:43:55 EET 2016
ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Tue Dec 6 14:08:39 2016 +0100| [108db37586e4e5bb5ba0ea3b927d72bc4f25939b] | committer: Michael Niedermayer
tests/api/api-seek-test: Fix use of uinitialized value
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=108db37586e4e5bb5ba0ea3b927d72bc4f25939b
---
tests/api/api-seek-test.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/api/api-seek-test.c b/tests/api/api-seek-test.c
index 8117df4..9544dfb 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);
More information about the ffmpeg-cvslog
mailing list