From 1024bab19b989a6ad549e835cfb1186068904fcf Mon Sep 17 00:00:00 2001 From: k-m_schindler Date: Sat, 14 Dec 2013 23:52:28 +0000 Subject: fix PByteIOContext for ffmpeg-1.2. ffmpeg-0.8 works. ffmpeg-1.2 compiles but no audio and then crashes. git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@3026 b956fd51-792f-4845-bead-9b4dfca2ff2c --- src/media/UAudioDecoder_FFmpeg.pas | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/media') diff --git a/src/media/UAudioDecoder_FFmpeg.pas b/src/media/UAudioDecoder_FFmpeg.pas index 7d62d761..0cdf9555 100644 --- a/src/media/UAudioDecoder_FFmpeg.pas +++ b/src/media/UAudioDecoder_FFmpeg.pas @@ -690,7 +690,11 @@ function TFFmpegDecodeStream.ParseLoop(): boolean; var Packet: TAVPacket; SeekTarget: int64; + {$IF FFMPEG_VERSION_INT < 1001000} ByteIOCtx: PByteIOContext; + {$ELSE} + ByteIOCtx: PAVIOContext; + {$ENDIF} ErrorCode: integer; StartSilence: double; // duration of silence at start of stream StartSilencePtr: PDouble; // pointer for the EMPTY status packet -- cgit v1.2.3