summaryrefslogtreecommitdiff
path: root/package/kodi/patches/patch-xbmc_video_FFmpegVideoDecoder_cpp
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2016-03-21 00:05:48 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2016-03-21 00:05:54 +0100
commitab20306b70b10a860b566bf912487d1f8a6eb22e (patch)
tree2ce77f6c50572e64ac75bbd3bd50982d2835f718 /package/kodi/patches/patch-xbmc_video_FFmpegVideoDecoder_cpp
parentf172737d165dd7c255e5020c0b57545ccb432bad (diff)
kodi: add gentoo patches to work with ffmpeg3
Diffstat (limited to 'package/kodi/patches/patch-xbmc_video_FFmpegVideoDecoder_cpp')
-rw-r--r--package/kodi/patches/patch-xbmc_video_FFmpegVideoDecoder_cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/package/kodi/patches/patch-xbmc_video_FFmpegVideoDecoder_cpp b/package/kodi/patches/patch-xbmc_video_FFmpegVideoDecoder_cpp
new file mode 100644
index 000000000..8493b30f4
--- /dev/null
+++ b/package/kodi/patches/patch-xbmc_video_FFmpegVideoDecoder_cpp
@@ -0,0 +1,20 @@
+--- xbmc-16.0-Jarvis.orig/xbmc/video/FFmpegVideoDecoder.cpp 2016-02-20 16:21:19.000000000 +0100
++++ xbmc-16.0-Jarvis/xbmc/video/FFmpegVideoDecoder.cpp 2016-03-19 18:38:18.710019211 +0100
+@@ -252,7 +252,7 @@ bool FFmpegVideoDecoder::nextFrame( CBas
+ return false;
+
+ // Due to a bug in swsscale we need to allocate one extra line of data
+- if ( avpicture_alloc( m_pFrameRGB, PIX_FMT_RGB32, m_frameRGBwidth, m_frameRGBheight + 1 ) < 0 )
++ if ( avpicture_alloc( m_pFrameRGB, AV_PIX_FMT_RGB32, m_frameRGBwidth, m_frameRGBheight + 1 ) < 0 )
+ return false;
+ }
+
+@@ -287,7 +287,7 @@ bool FFmpegVideoDecoder::nextFrame( CBas
+
+ // We got the video frame, render it into the picture buffer
+ struct SwsContext * context = sws_getContext( m_pCodecCtx->width, m_pCodecCtx->height, m_pCodecCtx->pix_fmt,
+- m_frameRGBwidth, m_frameRGBheight, PIX_FMT_RGB32, SWS_FAST_BILINEAR, NULL, NULL, NULL );
++ m_frameRGBwidth, m_frameRGBheight, AV_PIX_FMT_RGB32, SWS_FAST_BILINEAR, NULL, NULL, NULL );
+
+ sws_scale( context, m_pFrame->data, m_pFrame->linesize, 0, m_pCodecCtx->height,
+ m_pFrameRGB->data, m_pFrameRGB->linesize );