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