mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-08 16:54:03 +02:00
Merge commit '443502aed8b814d883825e52e91e4f018955aa66'
* commit '443502aed8b814d883825e52e91e4f018955aa66': 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: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
287eb69973
@ -728,27 +728,19 @@ static int dvbsub_read_8bit_string(uint8_t *destbuf, int dbuf_len,
|
||||
return pixels_read;
|
||||
}
|
||||
|
||||
bits = 0;
|
||||
} else {
|
||||
bits = *(*srcbuf)++;
|
||||
}
|
||||
if (non_mod == 1 && bits == 1)
|
||||
pixels_read += run_length;
|
||||
else {
|
||||
if (map_table)
|
||||
bits = map_table[0];
|
||||
else
|
||||
bits = 0;
|
||||
bits = map_table[bits];
|
||||
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 {
|
||||
if (map_table)
|
||||
bits = map_table[bits];
|
||||
while (run_length-- > 0 && pixels_read < dbuf_len) {
|
||||
*destbuf++ = bits;
|
||||
pixels_read++;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user