diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-03-25 19:46:28 +0100 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-04-09 15:47:45 +0200 |
commit | f30b620e98ca35eb669fae4fbe4911b779c8413d (patch) | |
tree | 715d62bfbd8f8c8d14397426958d18c574916ba3 /fftools/ffmpeg_mux.c | |
parent | 44accfef41d6c9711f2ad62b91bcaf0f0f935030 (diff) | |
download | ffmpeg-f30b620e98ca35eb669fae4fbe4911b779c8413d.tar.gz |
fftools/ffmpeg: add encoder private data
Start by moving OutputStream.last_frame to it. In the future it will
hold other encoder-internal state.
Diffstat (limited to 'fftools/ffmpeg_mux.c')
-rw-r--r-- | fftools/ffmpeg_mux.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fftools/ffmpeg_mux.c b/fftools/ffmpeg_mux.c index 1937bc2aa7..527567831f 100644 --- a/fftools/ffmpeg_mux.c +++ b/fftools/ffmpeg_mux.c @@ -643,6 +643,8 @@ static void ost_free(OutputStream **post) return; ms = ms_from_ost(ost); + enc_free(&ost->enc); + if (ost->logfile) { if (fclose(ost->logfile)) av_log(ms, AV_LOG_ERROR, @@ -662,7 +664,6 @@ static void ost_free(OutputStream **post) av_frame_free(&ost->filtered_frame); av_frame_free(&ost->sq_frame); - av_frame_free(&ost->last_frame); av_packet_free(&ost->pkt); av_dict_free(&ost->encoder_opts); |