summaryrefslogtreecommitdiff
path: root/libavcodec/faxcompr.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2015-08-14 13:37:36 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-08-14 13:54:05 +0200
commit012784052a3337c23118a462c0faf6f5b46849a4 (patch)
tree330f2105deecd7edc67f7b495bc1b2faa3c153dd /libavcodec/faxcompr.c
parentb2e95e012c3c857eb1f8fddc7a41c0c4f0581f30 (diff)
downloadffmpeg-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>
Diffstat (limited to 'libavcodec/faxcompr.c')
-rw-r--r--libavcodec/faxcompr.c2
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");