OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix a crash on oom when decoding hevc.
[android-x86/external-ffmpeg.git]
/
libavcodec
/
hevc.c
diff --git
a/libavcodec/hevc.c
b/libavcodec/hevc.c
index
8ff51a3
..
2b57d13
100644
(file)
--- a/
libavcodec/hevc.c
+++ b/
libavcodec/hevc.c
@@
-2604,7
+2604,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++) {