aboutsummaryrefslogtreecommitdiffstats
path: root/src/media
diff options
context:
space:
mode:
Diffstat (limited to 'src/media')
-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();