1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-24 13:56:33 +02:00
FFmpeg/libavutil
Andreas Rheinhardt a500b975a8 avutil/opt: Don't use NULL for %s string in a log message
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 erroring out early in case of a nullpointer.

This also fixes a warning from GCC 9.2:
"‘%s’ directive argument is null [-Wformat-overflow=]"

Reviewed-by: Anton Khirnov <anton@khirnov.net>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
2020-04-01 04:09:18 +02:00
..
2018-09-14 21:36:21 +02:00
2017-12-24 22:02:41 +01:00
2017-12-24 22:02:41 +01:00
2017-01-26 10:25:20 +01:00
2018-09-12 19:15:09 +02:00
2018-09-12 19:15:09 +02:00
2019-11-11 22:15:45 +01:00
2017-09-13 22:03:27 +01:00
2020-02-04 23:19:48 +00:00
2017-03-01 11:23:19 -05:00
2017-06-02 21:00:35 -04:00
2017-11-05 22:13:16 +01:00
2020-03-23 21:26:25 +00:00