From 7d523b59769a7a99afdfe365ced3c6727018cf5a Mon Sep 17 00:00:00 2001 From: lotanrm Date: Thu, 17 May 2012 23:05:25 +0000 Subject: 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 --- src/media/UVideo.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/media/UVideo.pas') 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; -- cgit v1.2.3