mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-09 01:28:57 +00:00
More warnings for AVIDump.
This commit is contained in:
parent
86a8382376
commit
d4686aa1a7
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue