1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

msrledec: use bytestream2_get_bufferu()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
Paul B Mahol 2013-08-26 15:37:13 +00:00
parent f12c27daf7
commit 6638738968

View File

@ -184,9 +184,9 @@ static int msrle_decode_8_16_24_32(AVCodecContext *avctx, AVPicture *pic,
}
if ((depth == 8) || (depth == 24)) {
for(i = 0; i < p2 * (depth >> 3); i++) {
*output++ = bytestream2_get_byteu(gb);
}
bytestream2_get_bufferu(gb, output, p2 * (depth >> 3));
output += p2 * (depth >> 3);
// RLE8 copy is actually padded - and runs are not!
if(depth == 8 && (p2 & 1)) {
bytestream2_skip(gb, 1);