From d7557e14e0bb7d2555d0bfb528240bec1010c4a3 Mon Sep 17 00:00:00 2001 From: martii Date: Sat, 6 Jul 2013 17:06:01 +0200 Subject: [PATCH] libeplayer3: need to call avcodec_free_frame after swresample, too Origin commit data ------------------ Branch: master Commit: https://github.com/neutrino-images/ni-libstb-hal/commit/c3ed9ba3f5d228cec32e799baec487de9a9c5b86 Author: martii Date: 2013-07-06 (Sat, 06 Jul 2013) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- libeplayer3/container/container_ffmpeg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libeplayer3/container/container_ffmpeg.c b/libeplayer3/container/container_ffmpeg.c index 2fccadb..ae717b4 100644 --- a/libeplayer3/container/container_ffmpeg.c +++ b/libeplayer3/container/container_ffmpeg.c @@ -954,9 +954,10 @@ static void FFMPEGThread(Context_t *context) { if (avr) { avresample_close(avr); avresample_free(&avr); - avcodec_free_frame(&decoded_frame); } #endif + if (decoded_frame) + avcodec_free_frame(&decoded_frame); hasPlayThreadStarted = 0;