diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2006-07-06 12:27:43 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2006-07-06 12:27:43 +0000 |
commit | 2111e3f9f2fc32ebf415a82057d80e01fa263079 (patch) | |
tree | 1fc80cc2f5e1d0da133ee71a1328359977d293a1 /libavformat/movenc.c | |
parent | 9a39cd35b8a3e172d902b06d7dfbca9073ee1caa (diff) | |
download | ffmpeg-2111e3f9f2fc32ebf415a82057d80e01fa263079.tar.gz |
check for unparsed AMR input
Originally committed as revision 5637 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r-- | libavformat/movenc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 1709ffe307..77b74b57a6 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -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 |