diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-10-31 20:17:18 +0100 |
---|---|---|
committer | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2013-10-31 20:17:18 +0100 |
commit | 5ab1efb9d0dc65e748a0291b67915e35578b302e (patch) | |
tree | daf0656b5b4219c93749f57728e988a1cc4bc44e /libavcodec/hevc.c | |
parent | 49287bbfd3227b0718fddb976d19bebae52b71ef (diff) | |
download | ffmpeg-5ab1efb9d0dc65e748a0291b67915e35578b302e.tar.gz |
Fix a crash on oom when decoding hevc.
Diffstat (limited to 'libavcodec/hevc.c')
-rw-r--r-- | libavcodec/hevc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/hevc.c b/libavcodec/hevc.c index 9528323992..18fee3376c 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++) { |