summaryrefslogtreecommitdiff
path: root/fftools/ffmpeg_mux.h
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-04-09 12:56:46 +0200
committerAnton Khirnov <anton@khirnov.net>2024-04-09 12:56:46 +0200
commit8e512421e02502b2490d90060b9a99320d4cbe9f (patch)
treeab16364ffad9fc6ed1e13cb49011e2cd38037e37 /fftools/ffmpeg_mux.h
parent95132f6c0dcdaeb103a650323bf7cdf248145db3 (diff)
fftools/ffmpeg: rewrite checking whether codec AVOptions have been used
Share the code between encoding and decoding. Instead of checking every stream's options dictionary (which is also used for other purposes), track all used options in a dedicated dictionary.
Diffstat (limited to 'fftools/ffmpeg_mux.h')
-rw-r--r--fftools/ffmpeg_mux.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/fftools/ffmpeg_mux.h b/fftools/ffmpeg_mux.h
index 1e9ea35412..1c1b407484 100644
--- a/fftools/ffmpeg_mux.h
+++ b/fftools/ffmpeg_mux.h
@@ -99,6 +99,9 @@ typedef struct Muxer {
AVDictionary *opts;
+ // used to validate that all encoder avoptions have been actually used
+ AVDictionary *enc_opts_used;
+
/* filesize limit expressed in bytes */
int64_t limit_filesize;
atomic_int_least64_t last_filesize;