From f1d2d2c4597cbc7994a7a0388747f050b3d12d82 Mon Sep 17 00:00:00 2001 From: darealshinji Date: Mon, 7 Jul 2014 16:40:12 +0200 Subject: [PATCH] use av_frame_alloc() if lavc is >= 55.28.1 --- neo/renderer/Cinematic.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/neo/renderer/Cinematic.cpp b/neo/renderer/Cinematic.cpp index 84dec0e9..6458d889 100644 --- a/neo/renderer/Cinematic.cpp +++ b/neo/renderer/Cinematic.cpp @@ -386,8 +386,13 @@ idCinematicLocal::idCinematicLocal() // Carl: ffmpeg stuff, for bink and normal video files: isRoQ = false; // fmt_ctx = avformat_alloc_context(); +#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(55,28,1) + frame = av_frame_alloc(); + frame2 = av_frame_alloc(); +#else frame = avcodec_alloc_frame(); frame2 = avcodec_alloc_frame(); +#endif // LIBAVCODEC_VERSION_INT dec_ctx = NULL; fmt_ctx = NULL; video_stream_index = -1;