Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'remove-libav-deprecation'
  • Loading branch information
glennricster committed Aug 29, 2012
2 parents 94e49c5 + 054c6f2 commit c1a684b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CMakeTests/CheckLib.cmake
Expand Up @@ -55,8 +55,8 @@ endmacro()

macro(check_libav)
if(PKG_CONFIG_FOUND)
pkg_check_modules(LIBAV libavcodec>=53.5.0 libavformat>=53.2.0
libswscale>=2.0.0 libavutil>=51.7.0)
pkg_check_modules(LIBAV libavcodec>=53.35.0 libavformat>=53.21.0
libswscale>=2.1.0 libavutil>=51.22.1)
else()
message("pkg-config is required to check for libav")
endif()
Expand Down
4 changes: 2 additions & 2 deletions Source/Core/VideoCommon/Src/AVIDump.cpp
Expand Up @@ -252,7 +252,7 @@ bool AVIDump::CreateFile()
File::CreateFullPath(s_FormatContext->filename);

if (!(s_FormatContext->oformat = av_guess_format("avi", NULL, NULL)) ||
!(s_Stream = av_new_stream(s_FormatContext, 0)))
!(s_Stream = avformat_new_stream(s_FormatContext, codec)))
{
CloseFile();
return false;
Expand All @@ -269,7 +269,7 @@ bool AVIDump::CreateFile()
s_Stream->codec->pix_fmt = g_Config.bUseFFV1 ? PIX_FMT_BGRA : PIX_FMT_YUV420P;

if (!(codec = avcodec_find_encoder(s_Stream->codec->codec_id)) ||
(avcodec_open(s_Stream->codec, codec) < 0))
(avcodec_open2(s_Stream->codec, codec, NULL) < 0))
{
CloseFile();
return false;
Expand Down

0 comments on commit c1a684b

Please sign in to comment.