diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-03-29 10:42:22 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-03-29 10:42:22 +0000 |
commit | a097e559b2f3dc543327fc83773a8e68354b3d76 (patch) | |
tree | b6931d9194d734aec7986589f46c7805b9dce819 /libavformat/mov.c | |
parent | 62b6498df2ef9f5fc65d581c8be48a6ff57de1e3 (diff) | |
download | ffmpeg-a097e559b2f3dc543327fc83773a8e68354b3d76.tar.gz |
unset sample count to disable track when is broken
Originally committed as revision 8545 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 83dcdf0ec7..cbd0f760ee 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -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) |