mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-28 10:13:22 +00:00
msrledec: use memset()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
6638738968
commit
e6e26b8a91
@ -211,8 +211,8 @@ static int msrle_decode_8_16_24_32(AVCodecContext *avctx, AVPicture *pic,
|
|||||||
switch(depth){
|
switch(depth){
|
||||||
case 8:
|
case 8:
|
||||||
pix[0] = bytestream2_get_byte(gb);
|
pix[0] = bytestream2_get_byte(gb);
|
||||||
for(i = 0; i < p1; i++)
|
memset(output, pix[0], p1);
|
||||||
*output++ = pix[0];
|
output += p1;
|
||||||
break;
|
break;
|
||||||
case 16:
|
case 16:
|
||||||
pix16 = bytestream2_get_le16(gb);
|
pix16 = bytestream2_get_le16(gb);
|
||||||
|
Loading…
Reference in New Issue
Block a user