Re: [FFmpeg-devel] [PATCH] avutil/opt: Don't use NULL for %s string in a log message

2020-03-31 Thread Andreas Rheinhardt
Anton Khirnov: > Quoting Andreas Rheinhardt (2020-03-29 06:14:37) >> If one calls av_opt_set() with an incorrect string to set the value of >> an option of type AV_OPT_TYPE_VIDEO_RATE, the given string is used in a >> log message via %s. This also happens when the string is actually a >> nullpointe

Re: [FFmpeg-devel] [PATCH] avutil/opt: Don't use NULL for %s string in a log message

2020-03-31 Thread Anton Khirnov
Quoting Andreas Rheinhardt (2020-03-29 06:14:37) > If one calls av_opt_set() with an incorrect string to set the value of > an option of type AV_OPT_TYPE_VIDEO_RATE, the given string is used in a > log message via %s. This also happens when the string is actually a > nullpointer in which case using

[FFmpeg-devel] [PATCH] avutil/opt: Don't use NULL for %s string in a log message

2020-03-28 Thread Andreas Rheinhardt
If one calls av_opt_set() with an incorrect string to set the value of an option of type AV_OPT_TYPE_VIDEO_RATE, the given string is used in a log message via %s. This also happens when the string is actually a nullpointer in which case using it for %s is forbidden. This commit changes this by err