Hi,
a number of people желающих странного made me add a new output parameter
to av_opt_set_dict() -- and by extension to avformat_open_input/output.
Not found options are dumped into it, so input options are preserved.
I think this is a bad idea for the following reason:
The most common use case will IMO be when
1) the caller won't need the options anymore
2) the caller will want to know if some options didn't exist
The proposed changes make this kind of usage somewhat more complicated
(compare e.g. avformat_open_input() between the two patches). Adding yet
another parameter to each open call isn't very nice either.
OTOH in the uncommon case the user does want to preserve the options
dict, he can do it with one call to av_dict_copy.
Further opinions on this are welcome.
--
Anton Khirnov
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel