From 681f3fa530f2e1b729804981418c9809458a1015 Mon Sep 17 00:00:00 2001 From: scrawl Date: Sun, 19 Oct 2014 04:04:43 +0200 Subject: [PATCH] Revert "Removed a warning about comparision between signed and unsigned variable in ffmpeg_decoder." This reverts commit b40c1ff26c7b47a4a8cd27ca50d68b7089ca09d6. --- apps/openmw/mwrender/videoplayer.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwrender/videoplayer.cpp b/apps/openmw/mwrender/videoplayer.cpp index 072653898c..46d33c86d6 100644 --- a/apps/openmw/mwrender/videoplayer.cpp +++ b/apps/openmw/mwrender/videoplayer.cpp @@ -982,9 +982,9 @@ int VideoState::stream_open(int stream_index, AVFormatContext *pFormatCtx) // Get a pointer to the codec context for the video stream codecCtx = pFormatCtx->streams[stream_index]->codec; codec = avcodec_find_decoder(codecCtx->codec_id); -#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(56,1,0) +#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT(56,1,0) codecCtx->refcounted_frames = 1; -#endif /* LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(56,1,0) */ +#endif /* LIBAVCODEC_VERSION_INT < AV_VERSION_INT(56,1,0) */ if(!codec || (avcodec_open2(codecCtx, codec, NULL) < 0)) { fprintf(stderr, "Unsupported codec!\n");