Skip to content
Snippets Groups Projects
Commit a097e559 authored by Baptiste Coudurier's avatar Baptiste Coudurier
Browse files

unset sample count to disable track when is broken

Originally committed as revision 8545 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 62b6498d
No related branches found
No related tags found
No related merge requests found
...@@ -1509,6 +1509,7 @@ static int mov_read_header(AVFormatContext *s, AVFormatParameters *ap) ...@@ -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 || if(!sc->stts_count || !sc->chunk_count || !sc->sample_to_chunk_sz ||
(!sc->sample_size && !sc->sample_count)){ (!sc->sample_size && !sc->sample_count)){
av_log(s, AV_LOG_ERROR, "missing mandatory atoms, broken header\n"); av_log(s, AV_LOG_ERROR, "missing mandatory atoms, broken header\n");
sc->sample_count = 0; //ignore track
continue; continue;
} }
if(!sc->time_rate) if(!sc->time_rate)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment