libeplayer3: need to call avcodec_free_frame after swresample, too

This commit is contained in:
martii
2013-07-06 17:06:01 +02:00
committed by Stefan Seyfried
parent 0a386a264d
commit 5e38511807

View File

@@ -956,9 +956,10 @@ static void FFMPEGThread(Context_t *context) {
if (avr) { if (avr) {
avresample_close(avr); avresample_close(avr);
avresample_free(&avr); avresample_free(&avr);
avcodec_free_frame(&decoded_frame);
} }
#endif #endif
if (decoded_frame)
avcodec_free_frame(&decoded_frame);
hasPlayThreadStarted = 0; hasPlayThreadStarted = 0;