diff options
author | Casimir666 <casimir666@users.sourceforge.net> | 2009-04-19 13:52:04 +0400 |
---|---|---|
committer | Casimir666 <casimir666@users.sourceforge.net> | 2009-04-19 13:52:04 +0400 |
commit | bfd541de70f551debad2afa9fece1e5f9b21e5d5 (patch) | |
tree | bea6dd5aac689cab9286de71084f90739a31dc62 /src/filters/transform/mpadecfilter | |
parent | 5b7b1fcbca0aa3e67b20678e540f44a7271f43be (diff) |
Updated ffmeg
Fixed : crash on seek with True HD tracks
git-svn-id: https://mpc-hc.svn.sourceforge.net/svnroot/mpc-hc/trunk@1052 10f7b99b-c216-0410-bff0-8a66a9350fd8
Diffstat (limited to 'src/filters/transform/mpadecfilter')
-rw-r--r-- | src/filters/transform/mpadecfilter/MpaDecFilter.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/filters/transform/mpadecfilter/MpaDecFilter.cpp b/src/filters/transform/mpadecfilter/MpaDecFilter.cpp index b0bb22593..e2cdb4296 100644 --- a/src/filters/transform/mpadecfilter/MpaDecFilter.cpp +++ b/src/filters/transform/mpadecfilter/MpaDecFilter.cpp @@ -892,10 +892,15 @@ HRESULT CMpaDecFilter::ProcessAC3() {
int nMLPLength=0;
int nMLPChunk;
+ int nLenght = (((p[0]<<8) + p[1]) & 0x0FFF)*2;
m_DolbyDigitalMode = DD_TRUEHD;
- DeliverFfmpeg(CODEC_ID_MLP, p, end-p, size);
- if (size<0) size = end-p;
+
+ if (nLenght >= 4)
+ {
+ DeliverFfmpeg(CODEC_ID_MLP, p, end-p, size);
+ if (size<0) size = end-p;
+ }
}
else
{
|