[vlc-devel] [PATCH 2/8] avcodec: pass the ES category as an enum es_format_category_e

Steve Lhomme robux4 at videolabs.io
Wed Jul 5 17:09:15 CEST 2017


---
 modules/codec/avcodec/avcodec.h | 2 +-
 modules/codec/avcodec/fourcc.c  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/avcodec/avcodec.h b/modules/codec/avcodec/avcodec.h
index aec123dbef..f64fc55cc5 100644
--- a/modules/codec/avcodec/avcodec.h
+++ b/modules/codec/avcodec/avcodec.h
@@ -25,7 +25,7 @@
 #include "avcommon.h"
 
 /* VLC <-> avcodec tables */
-bool GetFfmpegCodec( unsigned cat, vlc_fourcc_t i_fourcc,
+bool GetFfmpegCodec( enum es_format_category_e cat, vlc_fourcc_t i_fourcc,
                      unsigned *pi_ffmpeg_codec, const char **ppsz_name );
 vlc_fourcc_t GetVlcFourcc( unsigned i_ffmpeg_codec );
 vlc_fourcc_t GetVlcAudioFormat( int i_sample_fmt );
diff --git a/modules/codec/avcodec/fourcc.c b/modules/codec/avcodec/fourcc.c
index b3a4355e91..4f2a3cd422 100644
--- a/modules/codec/avcodec/fourcc.c
+++ b/modules/codec/avcodec/fourcc.c
@@ -489,7 +489,7 @@ static const struct vlc_avcodec_fourcc spu_codecs[] =
     /* ffmpeg only: AV_CODEC_ID_ASS */
 };
 
-bool GetFfmpegCodec( unsigned cat, vlc_fourcc_t i_fourcc,
+bool GetFfmpegCodec( enum es_format_category_e cat, vlc_fourcc_t i_fourcc,
                      unsigned *pi_ffmpeg_codec, const char **ppsz_name )
 {
     const struct vlc_avcodec_fourcc *base;
-- 
2.12.1



More information about the vlc-devel mailing list