Commit e6e26b8a authored by Paul B Mahol's avatar Paul B Mahol

msrledec: use memset()

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 66387389
......@@ -211,8 +211,8 @@ static int msrle_decode_8_16_24_32(AVCodecContext *avctx, AVPicture *pic,
switch(depth){
case 8:
pix[0] = bytestream2_get_byte(gb);
for(i = 0; i < p1; i++)
*output++ = pix[0];
memset(output, pix[0], p1);
output += p1;
break;
case 16:
pix16 = bytestream2_get_le16(gb);
......
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