Commit 01278405 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/faxcompr: negate uncompressed runs

Fixes remaining part of Ticket700

Found-by: ami_stuff
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent b2e95e01
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment