From a9c5525dd602bb9ede3d17116483c5d60cf866f1 Mon Sep 17 00:00:00 2001 From: rdb Date: Fri, 25 Mar 2016 00:43:44 +0100 Subject: [PATCH] Compile fix for Ubuntu precise version of ffmpeg --- panda/src/ffmpeg/ffmpegVideoCursor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panda/src/ffmpeg/ffmpegVideoCursor.cxx b/panda/src/ffmpeg/ffmpegVideoCursor.cxx index 0be8024a0a..eb33490384 100644 --- a/panda/src/ffmpeg/ffmpegVideoCursor.cxx +++ b/panda/src/ffmpeg/ffmpegVideoCursor.cxx @@ -83,7 +83,7 @@ init_from(FfmpegVideo *source) { #ifdef HAVE_SWSCALE nassertv(_convert_ctx == NULL); _convert_ctx = sws_getContext(_size_x, _size_y, _video_ctx->pix_fmt, -#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(51, 74, 100) +#if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(51, 74, 100) _size_x, _size_y, AV_PIX_FMT_BGR24, #else _size_x, _size_y, PIX_FMT_BGR24,