diff options
author | k-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2014-11-22 23:21:19 +0000 |
---|---|---|
committer | k-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2014-11-22 23:21:19 +0000 |
commit | fb174160559b9823a932fc238b55eb44619c47e8 (patch) | |
tree | bd90bfc144adefb13d4bc21c78f879e84f293790 /src/media | |
parent | adb65ab322d26b262f1988d24ee5cf800e07b4bf (diff) | |
download | usdx-fb174160559b9823a932fc238b55eb44619c47e8.tar.gz usdx-fb174160559b9823a932fc238b55eb44619c47e8.tar.xz usdx-fb174160559b9823a932fc238b55eb44619c47e8.zip |
Remove unused variables and fix warnings with ifdefed variables. Thanks to rudi_s.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@3103 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | src/media/UAudioDecoder_FFmpeg.pas | 2 | ||||
-rw-r--r-- | src/media/UMediaCore_FFmpeg.pas | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/media/UAudioDecoder_FFmpeg.pas b/src/media/UAudioDecoder_FFmpeg.pas index bc319546..34b8d244 100644 --- a/src/media/UAudioDecoder_FFmpeg.pas +++ b/src/media/UAudioDecoder_FFmpeg.pas @@ -277,7 +277,7 @@ end; function TFFmpegDecodeStream.Open(const Filename: IPath): boolean; var SampleFormat: TAudioSampleFormat; - TestFrame: TAVPacket; +{ TestFrame: TAVPacket;} AVResult: integer; begin Result := false; diff --git a/src/media/UMediaCore_FFmpeg.pas b/src/media/UMediaCore_FFmpeg.pas index 55d9a779..3f6eca5f 100644 --- a/src/media/UMediaCore_FFmpeg.pas +++ b/src/media/UMediaCore_FFmpeg.pas @@ -504,9 +504,11 @@ begin end; function TMediaCore_FFmpeg.AVFormatOpenInput(ps: PPAVFormatContext; filename: {const} PAnsiChar): Integer; +{$IF LIBAVFORMAT_VERSION >= 54029104} var h: Pointer; buffer: Pointer; +{$ENDIF} begin {$IF LIBAVFORMAT_VERSION >= 54029104} ps^ := avformat_alloc_context(); |