decoder/ffmpeg: check if long_name is not null
This commit is contained in:
parent
ea95da3b1a
commit
5b775ca5b4
@ -602,6 +602,10 @@ ffmpeg_decode(DecoderClient &client, InputStream &input)
|
||||
FfmpegOpenInput(stream.io, input.GetURI(), nullptr);
|
||||
|
||||
const auto *input_format = format_context->iformat;
|
||||
if (input_format->long_name == nullptr)
|
||||
FmtDebug(ffmpeg_domain, "detected input format '{}'",
|
||||
input_format->name);
|
||||
else
|
||||
FmtDebug(ffmpeg_domain, "detected input format '{}' ({})",
|
||||
input_format->name, input_format->long_name);
|
||||
|
||||
@ -668,6 +672,10 @@ ffmpeg_uri_decode(DecoderClient &client, const char *uri)
|
||||
FfmpegOpenInput(nullptr, uri, nullptr);
|
||||
|
||||
const auto *input_format = format_context->iformat;
|
||||
if (input_format->long_name == nullptr)
|
||||
FmtDebug(ffmpeg_domain, "detected input format '{}'",
|
||||
input_format->name);
|
||||
else
|
||||
FmtDebug(ffmpeg_domain, "detected input format '{}' ({})",
|
||||
input_format->name, input_format->long_name);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user