[FFmpeg-devel] [PATCH v2 12/14] avfilter/avfilter: Honour the short options documentation
Nicolas George
george at nsup.org
Thu Sep 16 15:56:01 EEST 2021
Andreas Rheinhardt (12021-09-14):
> The documentation for filter arguments states that short options must
> precede long options (i.e. those of the form key=value). Yet if
> process_options() encounters arguments not abiding by this, it simply
> treats short options after a long option as if it were parsing short
> options for the first time. In particular, it overwrites options already
> set earlier, possibly via other short options. This is not how it is
> intended (as a comment in the code indicates).
>
> This commit modifies the code to reject further shorthand options
> after a long option has been encountered. After all, avfilter_init_str()
> errors out upon unrecognized options, so it is intended to be picky.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
> libavfilter/avfilter.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
Since you have a good reason to use a pointer instead of a integer
boolean, then ok.
Regards,
--
Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20210916/2c9eae90/attachment.sig>
More information about the ffmpeg-devel
mailing list