From 923012eedfee53ec6e2ae9f8dabb71f644f8b858 Mon Sep 17 00:00:00 2001 From: Torsten Jager Date: Sat, 15 Feb 2014 13:35:25 +0100 Subject: Detach dv audio decoder from avcodec.h. That ff takeout was made many years ago, and no longer fits newer external header. Big thanks to Mounir Ouali for pointing that out. --- src/audio_dec/ff_dvdata.h | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/audio_dec/ff_dvdata.h b/src/audio_dec/ff_dvdata.h index f1d7af260..458ab3e8a 100644 --- a/src/audio_dec/ff_dvdata.h +++ b/src/audio_dec/ff_dvdata.h @@ -28,13 +28,19 @@ #define FFMPEG_DVDATA_H #ifdef HAVE_FFMPEG_AVUTIL_H -# include # include #else -# include # include #endif +/* TJ. This is a fairly old snapshot. Dont mess it up by including + a recent avcodec.h, and put a little outtake from it here. */ +enum PixelFormat { + PIX_FMT_YUV420P = 0, + PIX_FMT_YUV422P = 4, + PIX_FMT_YUV411P = 7 +}; + /* * DVprofile is used to express the differences between various * DV flavors. For now it's primarily used for differentiating @@ -2686,6 +2692,7 @@ static inline const DVprofile* dv_frame_profile(uint8_t* frame) } } +#if 0 /* not used in xine DV audio */ static inline const DVprofile* dv_codec_profile(AVCodecContext* codec) { int i; @@ -2699,6 +2706,7 @@ static inline const DVprofile* dv_codec_profile(AVCodecContext* codec) return NULL; } +#endif static inline int dv_write_dif_id(enum dv_section_type t, uint8_t chan_num, uint8_t seq_num, uint8_t dif_num, uint8_t* buf) @@ -2735,3 +2743,5 @@ static inline int dv_write_ssyb_id(uint8_t syb_num, uint8_t fr, uint8_t* buf) } #endif /* FFMPEG_DVDATA_H */ + + -- cgit v1.2.3