[FFmpeg-cvslog] pictordec: pass correct context to avpriv_request_sample
Anton Khirnov
git at videolan.org
Tue Sep 3 14:16:15 CEST 2013
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Sat Aug 24 21:30:46 2013 +0200| [fe9bb61f9a16be19ad91875632c39e44b7a99a8a] | committer: Anton Khirnov
pictordec: pass correct context to avpriv_request_sample
Fixes invalid reads.
Reported-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
CC: libav-stable at libav.org
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=fe9bb61f9a16be19ad91875632c39e44b7a99a8a
---
libavcodec/pictordec.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavcodec/pictordec.c b/libavcodec/pictordec.c
index 20ddb20..020424d 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:
More information about the ffmpeg-cvslog
mailing list