diff options
author | brian-ch <brian-ch@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2013-12-26 13:05:20 +0000 |
---|---|---|
committer | brian-ch <brian-ch@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2013-12-26 13:05:20 +0000 |
commit | 09bcce93209367313744817790b4309e1071ee8e (patch) | |
tree | 750c3009c426f9c6d2bd131a2727f93e448805a5 /src/lib/ffmpeg | |
parent | e5c4702b329953fa78e740072e812cdabb4632e6 (diff) | |
download | usdx-09bcce93209367313744817790b4309e1071ee8e.tar.gz usdx-09bcce93209367313744817790b4309e1071ee8e.tar.xz usdx-09bcce93209367313744817790b4309e1071ee8e.zip |
Fix in avformat defines and a small fix in UAudioDecoder_FFmpeg
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@3060 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | src/lib/ffmpeg-2.1/avformat.pas | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/src/lib/ffmpeg-2.1/avformat.pas b/src/lib/ffmpeg-2.1/avformat.pas index ba062cf1..b97e4259 100644 --- a/src/lib/ffmpeg-2.1/avformat.pas +++ b/src/lib/ffmpeg-2.1/avformat.pas @@ -94,36 +94,38 @@ const * dropped at a future version bump. The defines themselves are not part of * the public API and may change, break or disappear at any time. *) -const + +(*old defines not present anymore in ffmpeg-2.1 {$ifndef FF_API_OLD_AVIO} - FF_API_OLD_AVIO = (LIBAVFORMAT_VERSION_MAJOR < 55); +{$define FF_API_OLD_AVIO := (LIBAVFORMAT_VERSION_MAJOR < 55)} {$endif} {$ifndef FF_API_PKT_DUMP} - FF_API_PKT_DUMP = (LIBAVFORMAT_VERSION_MAJOR < 54); +{$define FF_API_PKT_DUMP := (LIBAVFORMAT_VERSION_MAJOR < 54) {$endif} +*) {$ifndef FF_API_ALLOC_OUTPUT_CONTEXT} - FF_API_ALLOC_OUTPUT_CONTEXT = (LIBAVFORMAT_VERSION_MAJOR < 56); +{$define FF_API_ALLOC_OUTPUT_CONTEXT := (LIBAVFORMAT_VERSION_MAJOR < 56)} {$endif} {$ifndef FF_API_FORMAT_PARAMETERS} - FF_API_FORMAT_PARAMETERS = (LIBAVFORMAT_VERSION_MAJOR < 56); +{$define FF_API_FORMAT_PARAMETERS := (LIBAVFORMAT_VERSION_MAJOR < 56)} {$endif} {$ifndef FF_API_NEW_STREAM} - FF_API_NEW_STREAM = (LIBAVFORMAT_VERSION_MAJOR < 56); +{$define FF_API_NEW_STREAM := (LIBAVFORMAT_VERSION_MAJOR < 56)} {$endif} {$ifndef FF_API_SET_PTS_INFO} - FF_API_SET_PTS_INFO = (LIBAVFORMAT_VERSION_MAJOR < 56); +{$define FF_API_SET_PTS_INFO := (LIBAVFORMAT_VERSION_MAJOR < 56)} {$endif} {$ifndef FF_API_CLOSE_INPUT_FILE} - FF_API_CLOSE_INPUT_FILE = (LIBAVFORMAT_VERSION_MAJOR < 56); +{$define FF_API_CLOSE_INPUT_FILE := (LIBAVFORMAT_VERSION_MAJOR < 56)} {$endif} {$ifndef FF_API_READ_PACKET} - FF_API_READ_PACKET = (LIBAVFORMAT_VERSION_MAJOR < 56); +{$define FF_API_READ_PACKET := (LIBAVFORMAT_VERSION_MAJOR < 56)} {$endif} {$ifndef FF_API_ASS_SSA} - FF_API_ASS_SSA = (LIBAVFORMAT_VERSION_MAJOR < 56); +{$define FF_API_ASS_SSA := (LIBAVFORMAT_VERSION_MAJOR < 56)} {$endif} {$ifndef FF_API_R_FRAME_RATE} - FF_API_R_FRAME_RATE = 1; +{$define FF_API_R_FRAME_RATE := 1} {$endif} (** @@ -1584,14 +1586,14 @@ function av_new_program(s: PAVFormatContext; id: cint): PAVProgram; * @} *) -{$IF FF_API_PKT_DUMP} +{$IFDEF FF_API_PKT_DUMP} procedure av_pkt_dump(f: PAVFile; pkt: PAVPacket; dump_payload: cint); {deprecated} cdecl; external av__format; procedure av_pkt_dump_log(avcl: Pointer; level: cint; pkt: PAVPacket; dump_payload: cint); {deprecated} cdecl; external av__format; {$IFEND} -{$IF FF_API_ALLOC_OUTPUT_CONTEXT} +{$IFDEF FF_API_ALLOC_OUTPUT_CONTEXT} (** * @deprecated deprecated in favor of avformat_alloc_output_context2() *) @@ -1710,7 +1712,7 @@ function avformat_open_input(ps: PPAVFormatContext; filename: {const} PAnsiChar; function av_demuxer_open(ic: PAVFormatContext): cint; cdecl; external av__format; deprecated; -{$IF FF_API_FORMAT_PARAMETERS} +{$IFDEF FF_API_FORMAT_PARAMETERS} (** * Read packets of a media file to get stream information. This * is useful for file formats with no headers such as MPEG. This @@ -1900,7 +1902,7 @@ function av_read_play(s: PAVFormatContext): cint; function av_read_pause(s: PAVFormatContext): cint; cdecl; external av__format; -{$IF FF_API_CLOSE_INPUT_FILE} +{$IFDEF FF_API_CLOSE_INPUT_FILE} (** * @deprecated use avformat_close_input() * Close a media file (but not its codecs). @@ -1921,7 +1923,7 @@ procedure avformat_close_input(s: PPAVFormatContext); * @} *) -{$IF FF_API_NEW_STREAM} +{$IFDEF FF_API_NEW_STREAM} (** * Add a new stream to a media file. * @@ -1936,7 +1938,7 @@ function av_new_stream(s: PAVFormatContext; id: cint): PAVStream; cdecl; external av__format; {$IFEND} -{$IF FF_API_SET_PTS_INFO} +{$IFDEF FF_API_SET_PTS_INFO} (** * @deprecated this function is not supposed to be called outside of lavf *) |