Compile fix for Ubuntu precise version of ffmpeg

This commit is contained in:
rdb 2016-03-25 00:43:44 +01:00
parent 63dd1e0d2b
commit a9c5525dd6

View File

@ -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,