Fix a crash on oom when decoding hevc.
ffmpeg | branch: master | Carl Eugen Hoyos <cehoyos@ag.or.at> | Thu Oct 31 20:17:18 2013 +0100| [5ab1efb9d0dc65e748a0291b67915e35578b302e] | committer: Carl Eugen Hoyos Fix a crash on oom when decoding hevc.
http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=5ab1efb9d0dc65e748...
libavcodec/hevc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 9528323..18fee33 100644 --- a/libavcodec/hevc.c +++ b/libavcodec/hevc.c @@ -2597,7 +2597,8 @@ static av_cold int hevc_decode_free(AVCodecContext *avctx) pic_arrays_free(s); - av_freep(&lc->edge_emu_buffer); + if (lc) + av_freep(&lc->edge_emu_buffer); av_freep(&s->md5_ctx); for(i=0; i < s->nals_allocated; i++) {
participants (1)
-
git@videolan.org