diff options
author | lotanrm <lotanrm@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2012-05-17 23:05:25 +0000 |
---|---|---|
committer | lotanrm <lotanrm@b956fd51-792f-4845-bead-9b4dfca2ff2c> | 2012-05-17 23:05:25 +0000 |
commit | 7d523b59769a7a99afdfe365ced3c6727018cf5a (patch) | |
tree | b8c084ae0e6e809723c15db7d8bf0f2fb8531b27 /src/media/UVideo.pas | |
parent | c03bb84ce50794bab234b1c5cbfa74f6e8e3c6f2 (diff) | |
download | usdx-7d523b59769a7a99afdfe365ced3c6727018cf5a.tar.gz usdx-7d523b59769a7a99afdfe365ced3c6727018cf5a.tar.xz usdx-7d523b59769a7a99afdfe365ced3c6727018cf5a.zip |
Corrected AVStream pointer arithmetic to work inconjuction with fpc 2.6 as well fpc 2.4. Removed unneeded code.
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2884 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to '')
-rw-r--r-- | src/media/UVideo.pas | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/media/UVideo.pas b/src/media/UVideo.pas index eaffa9ea..605eec78 100644 --- a/src/media/UVideo.pas +++ b/src/media/UVideo.pas @@ -359,7 +359,7 @@ begin {$IF LIBAVFORMAT_VERSION <= 52111000} // <= 52.111.0 fStream := fFormatContext^.streams[fStreamIndex]; {$ELSE} - fStream := (fFormatContext^.streams + fStreamIndex)^; + fStream := PPAVStream(PtrUInt(fFormatContext^.streams) + fStreamIndex * Sizeof(pointer))^; {$IFEND} fCodecContext := fStream^.codec; |