libeplayer3: need to call avcodec_free_frame after swresample, too

This commit is contained in:
martii
2013-07-06 17:06:01 +02:00
parent 4037122259
commit fcd2c1b246

View File

@@ -954,9 +954,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;