mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-27 07:23:11 +02:00
libeplayer3: need to call avcodec_free_frame after swresample, too
This commit is contained in:
@@ -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;
|
||||
|
||||
|
Reference in New Issue
Block a user