mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-26 15:49:50 -06:00
More warnings for AVIDump.
This commit is contained in:
@ -136,6 +136,7 @@ bool AVIDump::CreateVideoFile()
|
|||||||
if (!(codec = avcodec_find_encoder(codec_id)) ||
|
if (!(codec = avcodec_find_encoder(codec_id)) ||
|
||||||
!(s_codec_context = avcodec_alloc_context3(codec)))
|
!(s_codec_context = avcodec_alloc_context3(codec)))
|
||||||
{
|
{
|
||||||
|
WARN_LOG(VIDEO, "Could not find encoder or allocate codec context.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -153,6 +154,7 @@ bool AVIDump::CreateVideoFile()
|
|||||||
|
|
||||||
if (avcodec_open2(s_codec_context, codec, nullptr) < 0)
|
if (avcodec_open2(s_codec_context, codec, nullptr) < 0)
|
||||||
{
|
{
|
||||||
|
WARN_LOG(VIDEO, "Could not open codec.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -174,6 +176,7 @@ bool AVIDump::CreateVideoFile()
|
|||||||
if (!(s_stream = avformat_new_stream(s_format_context, codec)) ||
|
if (!(s_stream = avformat_new_stream(s_format_context, codec)) ||
|
||||||
!AVStreamCopyContext(s_stream, s_codec_context))
|
!AVStreamCopyContext(s_stream, s_codec_context))
|
||||||
{
|
{
|
||||||
|
WARN_LOG(VIDEO, "Could not create stream.");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user