libeplayer3/container_ffmpeg: cleanup

This commit is contained in:
martii
2013-03-09 16:40:54 +01:00
committed by Stefan Seyfried
parent aae498250b
commit b976862530

View File

@@ -1044,8 +1044,7 @@ static void FFMPEGThread(Context_t *context) {
if (avr) { if (avr) {
avresample_close(avr); avresample_close(avr);
avresample_free(&avr); avresample_free(&avr);
if (decoded_frame) avcodec_free_frame(&decoded_frame);
avcodec_free_frame(&decoded_frame);
} }
#else #else
// Freeing the allocated buffer for softdecoding // Freeing the allocated buffer for softdecoding