aboutsummaryrefslogtreecommitdiffstats
path: root/src/media
diff options
context:
space:
mode:
authork-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2014-11-22 23:21:19 +0000
committerk-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2014-11-22 23:21:19 +0000
commitfb174160559b9823a932fc238b55eb44619c47e8 (patch)
treebd90bfc144adefb13d4bc21c78f879e84f293790 /src/media
parentadb65ab322d26b262f1988d24ee5cf800e07b4bf (diff)
downloadusdx-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.pas2
-rw-r--r--src/media/UMediaCore_FFmpeg.pas2
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();