mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-20 07:48:15 +02:00
avcodec/dvbsubdec: Fix 8bit non_mod case
Untested, i failed to find a sample which triggers this case Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
2813dabdd4
commit
e0c36f5825
@ -741,15 +741,17 @@ static int dvbsub_read_8bit_string(uint8_t *destbuf, int dbuf_len,
|
|||||||
|
|
||||||
if (non_mod == 1 && bits == 1)
|
if (non_mod == 1 && bits == 1)
|
||||||
pixels_read += run_length;
|
pixels_read += run_length;
|
||||||
|
else {
|
||||||
if (map_table)
|
if (map_table)
|
||||||
bits = map_table[bits];
|
bits = map_table[bits];
|
||||||
else while (run_length-- > 0 && pixels_read < dbuf_len) {
|
while (run_length-- > 0 && pixels_read < dbuf_len) {
|
||||||
*destbuf++ = bits;
|
*destbuf++ = bits;
|
||||||
pixels_read++;
|
pixels_read++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (*(*srcbuf)++)
|
if (*(*srcbuf)++)
|
||||||
av_log(0, AV_LOG_ERROR, "DVBSub error: line overflow\n");
|
av_log(0, AV_LOG_ERROR, "DVBSub error: line overflow\n");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user