Commit 287eb699 authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '443502ae'

* commit '443502ae':
  dvbsubdec: move shared codepath

Conflicts:
	libavcodec/dvbsubdec.c

The merged code is ignored and the factorization redone with
the code that is in FFmpeg.
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents e0c36f58 443502ae
......@@ -728,17 +728,10 @@ static int dvbsub_read_8bit_string(uint8_t *destbuf, int dbuf_len,
return pixels_read;
}
if (map_table)
bits = map_table[0];
else
bits = 0;
while (run_length-- > 0 && pixels_read < dbuf_len) {
*destbuf++ = bits;
pixels_read++;
}
} else {
bits = *(*srcbuf)++;
}
if (non_mod == 1 && bits == 1)
pixels_read += run_length;
else {
......@@ -751,7 +744,6 @@ static int dvbsub_read_8bit_string(uint8_t *destbuf, int dbuf_len,
}
}
}
}
if (*(*srcbuf)++)
av_log(0, AV_LOG_ERROR, "DVBSub error: line overflow\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