msrledec: use memset()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
pull/37/head
Paul B Mahol 11 years ago
parent 6638738968
commit e6e26b8a91
  1. 4
      libavcodec/msrledec.c

@ -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);

Loading…
Cancel
Save