1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-10-06 05:47:18 +02:00

fftools/ffmpeg_dec: free decoder ctx after EOF

The codec context is no longer used after the decoder thread exits, but
still idly sticks around until program exit, wasting memory.
This commit is contained in:
Niklas Haas
2025-09-08 14:00:53 +02:00
parent 9d0b88feb1
commit 56d9ca69d7

View File

@@ -1018,6 +1018,7 @@ static int decoder_thread(void *arg)
finish:
dec_thread_uninit(&dt);
avcodec_free_context(&dp->dec_ctx);
return ret;
}