From fe9bb61f9a16be19ad91875632c39e44b7a99a8a Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 24 Aug 2013 21:30:46 +0200 Subject: [PATCH] pictordec: pass correct context to avpriv_request_sample Fixes invalid reads. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org --- libavcodec/pictordec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/pictordec.c b/libavcodec/pictordec.c index 20ddb20b15..020424ddae 100644 --- a/libavcodec/pictordec.c +++ b/libavcodec/pictordec.c @@ -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: