mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
pictordec: pass correct context to avpriv_request_sample
Fixes invalid reads. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
This commit is contained in:
parent
5f7aecde02
commit
fe9bb61f9a
@ -233,7 +233,7 @@ static int decode_frame(AVCodecContext *avctx,
|
||||
}
|
||||
}
|
||||
} else {
|
||||
avpriv_request_sample(s, "Uncompressed image");
|
||||
avpriv_request_sample(avctx, "Uncompressed image");
|
||||
return avpkt->size;
|
||||
}
|
||||
finish:
|
||||
|
Loading…
Reference in New Issue
Block a user