aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authork-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-12-02 19:38:37 +0000
committerk-m_schindler <k-m_schindler@b956fd51-792f-4845-bead-9b4dfca2ff2c>2009-12-02 19:38:37 +0000
commit200ac4c4600291523fc9edcdc97ccf945afd706e (patch)
treefe5679280a52a96ce39c9b99abc1d9160f9b0773 /src
parent735a5b67345e2888de89d89b4f31b4d48c06f9ec (diff)
downloadusdx-200ac4c4600291523fc9edcdc97ccf945afd706e.tar.gz
usdx-200ac4c4600291523fc9edcdc97ccf945afd706e.tar.xz
usdx-200ac4c4600291523fc9edcdc97ccf945afd706e.zip
typo correction and correction of av_free_packet for 52.25.0 - 52.27.0
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1961 b956fd51-792f-4845-bead-9b4dfca2ff2c
Diffstat (limited to 'src')
-rw-r--r--src/lib/ffmpeg/avcodec.pas15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/lib/ffmpeg/avcodec.pas b/src/lib/ffmpeg/avcodec.pas
index ceb1b7f0..b51cf34c 100644
--- a/src/lib/ffmpeg/avcodec.pas
+++ b/src/lib/ffmpeg/avcodec.pas
@@ -4396,18 +4396,15 @@ type
implementation
-{$IF (LIBAVCODEC_VERSION >= 52025000) and (LIBAVCODEC_VERSION <= 5202700)} // 52.25.0
+{$IF (LIBAVCODEC_VERSION >= 52025000) and (LIBAVCODEC_VERSION <= 52027000)} // 52.25.0 - 52.27.0
procedure av_free_packet(pkt: PAVPacket);{$IFDEF HASINLINE} inline; {$ENDIF}
begin
- if (pkt <> nil) then
+ if assigned(pkt) then
begin
- if (pkt.destruct <> nil) then
- pkt.destruct(pkt)
- else
- begin
- pkt.data = NULL;
- pkt.size = 0;
- end;
+ if assigned(pkt^.destruct) then
+ pkt^.destruct(pkt);
+ pkt^.data := NIL;
+ pkt^.size := 0;
end;
end;
{$IFEND}