Mercurial > libavformat.hg
comparison mov.c @ 3180:a8fe6b542c6b libavformat
print stream index in error message
author | bcoudurier |
---|---|
date | Thu, 27 Mar 2008 13:19:19 +0000 |
parents | 5f56b694f9bf |
children | 50b9615fbfd6 |
comparison
equal
deleted
inserted
replaced
3179:5f56b694f9bf | 3180:a8fe6b542c6b |
---|---|
1235 return ret; | 1235 return ret; |
1236 | 1236 |
1237 /* sanity checks */ | 1237 /* sanity checks */ |
1238 if(!sc->stts_count || !sc->chunk_count || !sc->sample_to_chunk_sz || | 1238 if(!sc->stts_count || !sc->chunk_count || !sc->sample_to_chunk_sz || |
1239 (!sc->sample_size && !sc->sample_count)){ | 1239 (!sc->sample_size && !sc->sample_count)){ |
1240 av_log(c->fc, AV_LOG_ERROR, "missing mandatory atoms, broken header\n"); | 1240 av_log(c->fc, AV_LOG_ERROR, "stream %d, missing mandatory atoms, broken header\n", |
1241 st->index); | |
1241 sc->sample_count = 0; //ignore track | 1242 sc->sample_count = 0; //ignore track |
1242 return 0; | 1243 return 0; |
1243 } | 1244 } |
1244 if(!sc->time_rate) | 1245 if(!sc->time_rate) |
1245 sc->time_rate=1; | 1246 sc->time_rate=1; |