From af2ef1052277f25d86d8b0f014312fbcdef113f2 Mon Sep 17 00:00:00 2001 From: k-m_schindler Date: Mon, 23 Apr 2012 17:37:16 +0000 Subject: fix and update avcodec.pas git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2869 b956fd51-792f-4845-bead-9b4dfca2ff2c --- src/lib/ffmpeg-0.7/avcodec.pas | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'src/lib/ffmpeg-0.7') diff --git a/src/lib/ffmpeg-0.7/avcodec.pas b/src/lib/ffmpeg-0.7/avcodec.pas index 6fb6a873..99f3e453 100644 --- a/src/lib/ffmpeg-0.7/avcodec.pas +++ b/src/lib/ffmpeg-0.7/avcodec.pas @@ -515,6 +515,7 @@ type CODEC_ID_FFMETADATA= $21000 ///< Dummy codec for streams containing only metadata information. ); +{$IF LIBAVCODEC_VERSION_MAJOR < 53} type TCodecType = TAVMediaType; @@ -526,6 +527,21 @@ const CODEC_TYPE_SUBTITLE = AVMEDIA_TYPE_SUBTITLE; CODEC_TYPE_ATTACHMENT = AVMEDIA_TYPE_ATTACHMENT; CODEC_TYPE_NB = AVMEDIA_TYPE_NB; +{$IFEND} + +{$IF FF_API_OLD_SAMPLE_FMT} +type + TSampleFormat = TAVSampleFormat; + +const + SAMPLE_FMT_NONE = AV_SAMPLE_FMT_NONE; + SAMPLE_FMT_U8 = AV_SAMPLE_FMT_U8; + SAMPLE_FMT_S16 = AV_SAMPLE_FMT_S16; + SAMPLE_FMT_S32 = AV_SAMPLE_FMT_S32; + SAMPLE_FMT_FLT = AV_SAMPLE_FMT_FLT; + SAMPLE_FMT_DBL = AV_SAMPLE_FMT_DBL; + SAMPLE_FMT_NB = AV_SAMPLE_FMT_NB; +{$IFEND} {$IF FF_API_OLD_AUDIOCONVERT} @@ -2825,6 +2841,12 @@ type max_prediction_order: cint; {$IF FF_API_FLAC_GLOBAL_OPTS} + (** + * @defgroup flac_opts FLAC options + * @deprecated Use FLAC encoder private options instead. + * @{ + *) + (** * search method for selecting prediction order * - encoding: Set by user. @@ -2880,7 +2902,7 @@ type (** * Bits per sample/pixel of internal libavcodec pixel/sample format. - * This field is applicable only when sample_fmt is SAMPLE_FMT_S32. + * This field is applicable only when sample_fmt is AV_SAMPLE_FMT_S32. * - encoding: set by user. * - decoding: set by libavcodec. *) -- cgit v1.2.3