add new arch m32c (newlib toolchain)
[openadk.git] / package / kodi / patches / patch-xbmc_video_FFmpegVideoDecoder_cpp
blob8493b30f4c78b908abe16fb9598e1e699d15f49e
1 --- xbmc-16.0-Jarvis.orig/xbmc/video/FFmpegVideoDecoder.cpp     2016-02-20 16:21:19.000000000 +0100
2 +++ xbmc-16.0-Jarvis/xbmc/video/FFmpegVideoDecoder.cpp  2016-03-19 18:38:18.710019211 +0100
3 @@ -252,7 +252,7 @@ bool FFmpegVideoDecoder::nextFrame( CBas
4        return false;
5  
6      // Due to a bug in swsscale we need to allocate one extra line of data
7 -    if ( avpicture_alloc( m_pFrameRGB, PIX_FMT_RGB32, m_frameRGBwidth, m_frameRGBheight + 1 ) < 0 )
8 +    if ( avpicture_alloc( m_pFrameRGB, AV_PIX_FMT_RGB32, m_frameRGBwidth, m_frameRGBheight + 1 ) < 0 )
9        return false;
10    }
12 @@ -287,7 +287,7 @@ bool FFmpegVideoDecoder::nextFrame( CBas
14    // We got the video frame, render it into the picture buffer
15    struct SwsContext * context = sws_getContext( m_pCodecCtx->width, m_pCodecCtx->height, m_pCodecCtx->pix_fmt,
16 -                           m_frameRGBwidth, m_frameRGBheight, PIX_FMT_RGB32, SWS_FAST_BILINEAR, NULL, NULL, NULL );
17 +                           m_frameRGBwidth, m_frameRGBheight, AV_PIX_FMT_RGB32, SWS_FAST_BILINEAR, NULL, NULL, NULL );
19    sws_scale( context, m_pFrame->data, m_pFrame->linesize, 0, m_pCodecCtx->height,
20                                                                       m_pFrameRGB->data, m_pFrameRGB->linesize );