libeplayer3/container_ffmpeg: cleanup

This commit is contained in:
martii
2013-03-09 16:40:54 +01:00
parent 8430f6f37c
commit a865a4779a

View File

@@ -1083,8 +1083,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