[FFmpeg-cvslog] avcodec/faxcompr: negate uncompressed runs

Michael Niedermayer git at videolan.org
Fri Aug 14 13:55:15 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michael at 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 <michael at 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");



More information about the ffmpeg-cvslog mailing list