aboutsummaryrefslogtreecommitdiffstats
path: root/tools/python
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-03-30 11:20:48 +0200
committerAnton Khirnov <anton@khirnov.net>2023-04-04 11:42:52 +0200
commitdffb058f3b1f9a9b681d7e923eee77c170c5bf54 (patch)
tree545fc182f71873b9faed71e45fb84408178d8f6d /tools/python
parent97c95961f0d78368d6318f02aeaeb2da5b8f1443 (diff)
downloadffmpeg-dffb058f3b1f9a9b681d7e923eee77c170c5bf54.tar.gz
lavf: fall back to a more meaningful log instance name
An uninitialized AVFormatContext instance with neither iformat nor oformat set will currently log as 'NULL', which is confusing and unhelpful. Print 'AVFormatContext' instead, which provides more information. This happens e.g. if choosing an output format fails in avformat_alloc_output_context2(). E.g. with the following commandline: ffmpeg -i <input> -f foobar -y /dev/null before: [NULL @ 0x5580377834c0] Requested output format 'foobar' is not a suitable output format after: [AVFormatContext @ 0x55fa15bb34c0] Requested output format 'foobar' is not a suitable output format
Diffstat (limited to 'tools/python')
0 files changed, 0 insertions, 0 deletions