aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/pictordec.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2013-08-24 21:30:46 +0200
committerAnton Khirnov <anton@khirnov.net>2013-09-02 19:27:56 +0200
commitfe9bb61f9a16be19ad91875632c39e44b7a99a8a (patch)
treed4962ce956ab4c83778174444e5b1f4574ee1d18 /libavcodec/pictordec.c
parent5f7aecde02a95451e514c809f2794c1deba80695 (diff)
downloadffmpeg-fe9bb61f9a16be19ad91875632c39e44b7a99a8a.tar.gz
pictordec: pass correct context to avpriv_request_sample
Fixes invalid reads. Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
Diffstat (limited to 'libavcodec/pictordec.c')
-rw-r--r--libavcodec/pictordec.c2
1 files changed, 1 insertions, 1 deletions
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: