Commit 1af69198 authored by michael's avatar michael

check for unparsed AMR input


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5637 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent bf2daf25
......@@ -1532,6 +1532,10 @@ static int mov_write_packet(AVFormatContext *s, AVPacket *pkt)
len += packed_size[(pkt->data[len] >> 3) & 0x0F];
samplesInChunk++;
}
if(samplesInChunk > 1){
av_log(s, AV_LOG_ERROR, "fatal error, input is not a single packet, inplement a AVParser for it\n");
return -1;
}
} else if (trk->sampleSize)
samplesInChunk = size/trk->sampleSize;
else
......
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