[FFmpeg-trac] #7385(undetermined:new): Memory leak using decode vp8
FFmpeg
trac at avcodec.org
Fri Sep 14 10:35:58 EEST 2018
#7385: Memory leak using decode vp8
-------------------------------------+-------------------------------------
Reporter: | Owner:
zhuqingliang | Status: new
Type: defect | Component:
Priority: normal | undetermined
Version: git-master | Resolution:
Keywords: leak | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
-------------------------------------+-------------------------------------
Comment (by fulinjie):
This issue could be reproduced by vp80-02-inter-1418.ivf which is
available:
https://github.com/webmproject/vp8-test-
vectors/blob/master/vp80-02-inter-1418.ivf
It seems that decoding failures of function "vaEndPicture" lead to the
error returns without releasing the slice_buffers.
A patch has been commited for this issue.
commit: bd9830712604a7463432c4c09a5c41903eb2a628
{{{
diff --git a/libavcodec/vaapi_decode.c b/libavcodec/vaapi_decode.c
index d0a6b5817d..700cd5c681 100644
--- a/libavcodec/vaapi_decode.c
+++ b/libavcodec/vaapi_decode.c
@@ -216,6 +216,11 @@ fail_with_picture:
fail:
ff_vaapi_decode_destroy_buffers(avctx, pic);
fail_at_end:
+ pic->nb_param_buffers = 0;
+ pic->nb_slices = 0;
+ pic->slices_allocated = 0;
+ av_freep(&pic->slice_buffers);
+
return err;
}
}}}
The decoding failure is caused by iHD driver. i965 driver works well on
this clip.
Will report an issue on iHD driver.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/7385#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list