ffmpeg | branch: master | Michael Niedermayer <mich...@niedermayer.cc> | Fri Aug 14 13:37:36 2015 +0200| [012784052a3337c23118a462c0faf6f5b46849a4] | committer: Michael Niedermayer
avcodec/faxcompr: negate uncompressed runs Fixes remaining part of Ticket700 Found-by: ami_stuff Signed-off-by: Michael Niedermayer <mich...@niedermayer.cc> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=012784052a3337c23118a462c0faf6f5b46849a4 --- libavcodec/faxcompr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/faxcompr.c b/libavcodec/faxcompr.c index afb3503..80df418 100644 --- a/libavcodec/faxcompr.c +++ b/libavcodec/faxcompr.c @@ -155,7 +155,7 @@ static int decode_uncompressed(AVCodecContext *avctx, GetBitContext *gb, for (k = 0; k < 2; k++) { if (codes[k]) { - if (*mode == k) { + if (*mode == !k) { *(*runs)++ = saved_run; if (*runs >= runend) { av_log(avctx, AV_LOG_ERROR, "uncompressed run overrun\n"); _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog