Browse Source

check for unparsed AMR input

Originally committed as revision 5637 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.5
Michael Niedermayer 19 years ago
parent
commit
2111e3f9f2
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      libavformat/movenc.c

+ 4
- 0
libavformat/movenc.c View File

@@ -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


Loading…
Cancel
Save