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.
This commit is contained in:
+1
-1
@@ -3927,7 +3927,7 @@ static int open_input_file(InputFile *ifile, const char *filename,
|
||||
AVDictionary *opts;
|
||||
|
||||
err = filter_codec_opts(codec_opts, stream->codecpar->codec_id,
|
||||
fmt_ctx, stream, codec, &opts);
|
||||
fmt_ctx, stream, codec, &opts, NULL);
|
||||
if (err < 0)
|
||||
exit(1);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user