diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2015-08-14 13:37:36 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2015-08-14 13:54:05 +0200 |
commit | 012784052a3337c23118a462c0faf6f5b46849a4 (patch) | |
tree | 330f2105deecd7edc67f7b495bc1b2faa3c153dd | |
parent | b2e95e012c3c857eb1f8fddc7a41c0c4f0581f30 (diff) | |
download | ffmpeg-012784052a3337c23118a462c0faf6f5b46849a4.tar.gz |
avcodec/faxcompr: negate uncompressed runs
Fixes remaining part of Ticket700
Found-by: ami_stuff
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavcodec/faxcompr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/faxcompr.c b/libavcodec/faxcompr.c index afb3503794..80df418a29 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"); |