]> git.sesse.net Git - vlc/blobdiff - modules/codec/avcodec/chroma.h
Let swscale handle video conversion when available (close #1695)
[vlc] / modules / codec / avcodec / chroma.h
index f5387618634b591acf246b1974ec2243991863a2..3e82aa6dce85ee818f2d692c6b6b41c533f2a6cb 100644 (file)
@@ -25,7 +25,7 @@
 /*****************************************************************************
  * Chroma fourcc -> ffmpeg_id mapping
  *****************************************************************************/
-static struct
+static const struct
 {
     vlc_fourcc_t  i_chroma;
     int  i_chroma_id;
@@ -74,7 +74,7 @@ static struct
     { 0, 0 }
 };
 
-static int GetFfmpegChroma( vlc_fourcc_t i_chroma )
+static inline int GetFfmpegChroma( vlc_fourcc_t i_chroma )
 {
     int i;
 
@@ -86,7 +86,7 @@ static int GetFfmpegChroma( vlc_fourcc_t i_chroma )
     return -1;
 }
 
-static vlc_fourcc_t GetVlcChroma( int i_ffmpeg_chroma )
+static inline vlc_fourcc_t GetVlcChroma( int i_ffmpeg_chroma )
 {
     int i;