mirror of
https://git.videolan.org/git/ffmpeg.git
synced 2024-08-01 00:40:04 +02:00
msrle: fix regression causing null ptr dereference
Fixes Ticket1630 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
f9505923a3
commit
58825a18aa
@ -106,10 +106,9 @@ static int msrle_decode_frame(AVCodecContext *avctx,
|
||||
s->frame.palette_has_changed = 1;
|
||||
memcpy(s->pal, pal, AVPALETTE_SIZE);
|
||||
}
|
||||
}
|
||||
|
||||
/* make the palette available */
|
||||
memcpy(s->frame.data[1], s->pal, AVPALETTE_SIZE);
|
||||
}
|
||||
|
||||
/* FIXME how to correctly detect RLE ??? */
|
||||
if (avctx->height * istride == avpkt->size) { /* assume uncompressed */
|
||||
|
Loading…
Reference in New Issue
Block a user