Skip to content

Commit

Permalink
Merge pull request #615 from delroth/libav-ubuntu
Browse files Browse the repository at this point in the history
Change libav* autodetection to support framedumping on Ubuntu 14.04
  • Loading branch information
delroth committed Jul 13, 2014
2 parents 3cabacd + 8876ee1 commit 0c95fcf
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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>=55.52.102 libavformat>=55.33.100
libswscale>=2.5.102 libavutil>=52.66.100)
pkg_check_modules(LIBAV libavcodec>=54.35.0 libavformat>=54.20.4
libswscale>=2.1.1 libavutil>=52.3.0)
else()
message("pkg-config is required to check for libav/ffmpeg")
endif()
Expand Down
5 changes: 5 additions & 0 deletions Source/Core/VideoCommon/AVIDump.cpp
Expand Up @@ -215,6 +215,11 @@ extern "C" {
#include <libavutil/mathematics.h>
}

#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(55, 28, 1)
#define av_frame_alloc avcodec_alloc_frame
#define av_frame_free avcodec_free_frame
#endif

static AVFormatContext* s_format_context = nullptr;
static AVStream* s_stream = nullptr;
static AVFrame* s_src_frame = nullptr;
Expand Down

0 comments on commit 0c95fcf

Please sign in to comment.