diff options
author | Paul B Mahol <onemda@gmail.com> | 2013-08-26 15:41:29 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2013-08-26 19:26:01 +0000 |
commit | e6e26b8a916fb582a1039f5b894c2929d8fa5f05 (patch) | |
tree | 1dfd3c8952027669835e8ea064e4fbf7cb7d1de5 | |
parent | 6638738968bade064a6a615263d131dfe4f54504 (diff) | |
download | ffmpeg-e6e26b8a916fb582a1039f5b894c2929d8fa5f05.tar.gz |
msrledec: use memset()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r-- | libavcodec/msrledec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/msrledec.c b/libavcodec/msrledec.c index 06777d7fd4..4d3da5ba17 100644 --- a/libavcodec/msrledec.c +++ b/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); |