mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 08:12:44 +00:00
dxa: dont try to use the previous frame if there is none.
Fixes null pointer dereference. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e70144cba1
commit
12eb2fd539
@ -256,7 +256,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *data_size, AVPac
|
||||
c->pic.key_frame = !(compr & 1);
|
||||
c->pic.pict_type = (compr & 1) ? AV_PICTURE_TYPE_P : AV_PICTURE_TYPE_I;
|
||||
for(j = 0; j < avctx->height; j++){
|
||||
if(compr & 1){
|
||||
if((compr & 1) && tmpptr){
|
||||
for(i = 0; i < avctx->width; i++)
|
||||
outptr[i] = srcptr[i] ^ tmpptr[i];
|
||||
tmpptr += stride;
|
||||
|
Loading…
Reference in New Issue
Block a user