[vlc-commits] decoder: fix warning

Rémi Duraffort git at videolan.org
Fri Nov 11 16:03:43 CET 2011


vlc | branch: master | Rémi Duraffort <ivoire at videolan.org> | Fri Nov 11 15:52:41 2011 +0100| [fb74afaa490edfd3f07d423f5a41c413b75fdefa] | committer: Rémi Duraffort

decoder: fix warning

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fb74afaa490edfd3f07d423f5a41c413b75fdefa
---

 src/input/decoder.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/input/decoder.c b/src/input/decoder.c
index ce878a9..c29f7d6 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -2347,7 +2347,7 @@ static picture_t *vout_new_buffer( decoder_t *p_dec )
 
         if( vlc_fourcc_IsYUV( fmt.i_chroma ) )
         {
-            vlc_chroma_description_t *dsc = vlc_fourcc_GetChromaDescription( fmt.i_chroma );
+            const vlc_chroma_description_t *dsc = vlc_fourcc_GetChromaDescription( fmt.i_chroma );
             for( int i = 0; dsc && i < dsc->plane_count; i++ )
             {
                 while( fmt.i_width % dsc->p[i].w.den )



More information about the vlc-commits mailing list