Android-x86
Fork
Donation

  • R/O
  • HTTP
  • SSH
  • HTTPS

external-stagefright-plugins: Commit

external/stagefright-plugins


Commit MetaInfo

Revision054d2bc8f0534eb90df89ea99a7d91e6918ab99b (tree)
Time2018-04-27 11:16:45
AuthorMichael Goffioul <michael.goffioul@gmai...>
CommiterChih-Wei Huang

Log Message

omx: hwaccel: fix memory leak

It's missing some cleanup when uninitializing the decoder.

Change Summary

Incremental Difference

--- a/omx/ffmpeg_hwaccel.c
+++ b/omx/ffmpeg_hwaccel.c
@@ -162,8 +162,10 @@ int ffmpeg_hwaccel_init(AVCodecContext *avctx)
162162 void ffmpeg_hwaccel_deinit(AVCodecContext *avctx)
163163 {
164164 if (avctx->opaque) {
165-#ifdef LIBAV_CONFIG_H
166165 InputStream *ist = avctx->opaque;
166+ if (ist->hwaccel_uninit)
167+ ist->hwaccel_uninit(avctx);
168+#ifdef LIBAV_CONFIG_H
167169 avcodec_free_context(&ist->dec_ctx);
168170 #endif
169171 av_freep(&avctx->opaque);
Show on old repository browser