mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 21:20:41 +00:00
Fix a crash on oom when decoding hevc.
This commit is contained in:
parent
49287bbfd3
commit
5ab1efb9d0
@ -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++) {
|
||||
|
Loading…
Reference in New Issue
Block a user