aboutsummaryrefslogtreecommitdiffstats
path: root/src/media/UVideo.pas
diff options
context:
space:
mode:
authork-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2012-05-05 20:48:01 +0000
committerk-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2012-05-05 20:48:01 +0000
commit17119fa5123a74c2cd371870e6450ddcd025fbdf (patch)
tree931ee6fddd0497033b361df5b7fe7e5782afe021 /src/media/UVideo.pas
parentf856c0172a5b5d6a404992952f4be5556fe11a81 (diff)
downloadusdx-17119fa5123a74c2cd371870e6450ddcd025fbdf.tar.gz
usdx-17119fa5123a74c2cd371870e6450ddcd025fbdf.tar.xz
usdx-17119fa5123a74c2cd371870e6450ddcd025fbdf.zip
update for ffmpeg-0.8
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@2873 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src/media/UVideo.pas')
-rw-r--r--src/media/UVideo.pas4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/media/UVideo.pas b/src/media/UVideo.pas
index b3030b0c..339c441d 100644
--- a/src/media/UVideo.pas
+++ b/src/media/UVideo.pas
@@ -347,7 +347,11 @@ begin
Exit;
end;
+{$IF LIBAVFORMAT_VERSION < 52110000} // < 52.110.0
fStream := fFormatContext^.streams[fStreamIndex];
+{$ELSE}
+ fStream := Pointer(fFormatContext^.streams^) + fStreamIndex;
+{$IFEND}
fCodecContext := fStream^.codec;
fCodec := avcodec_find_decoder(fCodecContext^.codec_id);