forked from FFmpeg/FFmpeg
unset sample count to disable track when is broken
Originally committed as revision 8545 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
62b6498df2
commit
a097e559b2
1 changed files with 1 additions and 0 deletions
|
@ -1509,6 +1509,7 @@ static int mov_read_header(AVFormatContext *s, AVFormatParameters *ap)
|
|||
if(!sc->stts_count || !sc->chunk_count || !sc->sample_to_chunk_sz ||
|
||||
(!sc->sample_size && !sc->sample_count)){
|
||||
av_log(s, AV_LOG_ERROR, "missing mandatory atoms, broken header\n");
|
||||
sc->sample_count = 0; //ignore track
|
||||
continue;
|
||||
}
|
||||
if(!sc->time_rate)
|
||||
|
|
Loading…
Add table
Reference in a new issue