You've already forked FFmpeg
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:
@@ -1018,6 +1018,7 @@ static int decoder_thread(void *arg)
|
||||
|
||||
finish:
|
||||
dec_thread_uninit(&dt);
|
||||
avcodec_free_context(&dp->dec_ctx);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Reference in New Issue
Block a user