1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-01-19 05:49:09 +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
..
2016-02-18 11:55:00 +01:00
2018-09-14 21:36:21 +02:00
2014-08-05 01:54:47 +02:00
2017-12-24 22:02:41 +01:00
2017-12-24 22:02:41 +01:00
2016-05-04 18:16:21 +02:00
2014-07-12 22:33:27 +02: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
2015-10-11 18:03:10 -04:00
2017-03-01 11:23:19 -05:00
2016-01-13 20:00:19 -05:00
2017-06-02 21:00:35 -04:00
2014-08-05 21:05:52 +02:00
2016-01-28 19:49:48 -08:00
2016-08-02 21:52:40 -07:00
2017-11-05 22:13:16 +01:00
2016-10-21 23:58:47 +02:00
2020-03-23 21:26:25 +00:00