Commit c7802332 authored by Steve Lhomme's avatar Steve Lhomme

libmatroska2: safety check for AC-3 frame duration

git-svn-id: https://matroska.svn.sourceforge.net/svnroot/matroska/trunk/foundation_src@625 a6f86f6d-0131-4f8e-9e7b-e335508773d5
parent 1360c5a8
......@@ -139,7 +139,7 @@ err_t MATROSKA_BlockProcessFrameDurations(matroska_block *Block, stream *Input)
{
fscod = Cursor[5] >> 3;
SampleRate = Cursor[4] >> 6;
if (fscod > 10)
if (fscod > 10 || fscod < 8)
{
Err = ERR_INVALID_DATA;
ARRAYBEGIN(Block->Durations,timecode_t)[Frame] = INVALID_TIMECODE_T;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment