aboutsummaryrefslogtreecommitdiffstats
path: root/src/media
diff options
context:
space:
mode:
authork-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2012-05-05 21:01:44 +0000
committerk-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2012-05-05 21:01:44 +0000
commit38c112b32740e4ba456df8975993b9e90ebe6919 (patch)
tree93477c9891450eb46750b985548a07663f854954 /src/media
parent211afadb26a2a18e18ec83327a17dcdcaa5801d7 (diff)
downloadusdx-38c112b32740e4ba456df8975993b9e90ebe6919.tar.gz
usdx-38c112b32740e4ba456df8975993b9e90ebe6919.tar.xz
usdx-38c112b32740e4ba456df8975993b9e90ebe6919.zip
another fix of streams. USDX finally builds, but does not work.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2876 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/media')
-rw-r--r--src/media/UAudioDecoder_FFmpeg.pas4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/media/UAudioDecoder_FFmpeg.pas b/src/media/UAudioDecoder_FFmpeg.pas
index a6749173..630ae408 100644
--- a/src/media/UAudioDecoder_FFmpeg.pas
+++ b/src/media/UAudioDecoder_FFmpeg.pas
@@ -323,7 +323,11 @@ begin
//Log.LogStatus('AudioStreamIndex is: '+ inttostr(ffmpegStreamID), 'UAudio_FFmpeg');
+{$IF LIBAVFORMAT_VERSION < 52110000} // < 52.110.0
fAudioStream := fFormatCtx.streams[fAudioStreamIndex];
+{$ELSE}
+ fAudioStream := Pointer(fFormatCtx.streams^) + fAudioStreamIndex;
+{$IFEND}
fAudioStreamPos := 0;
fCodecCtx := fAudioStream^.codec;