1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-10-04 01:30:05 +02:00

print stream index in error message

Originally committed as revision 12605 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Baptiste Coudurier 2008-03-27 13:19:19 +00:00
parent 71f3623510
commit 6282c5f45b

View File

@ -1237,7 +1237,8 @@ static int mov_read_trak(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
/* sanity checks */ /* sanity checks */
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(c->fc, AV_LOG_ERROR, "missing mandatory atoms, broken header\n"); av_log(c->fc, AV_LOG_ERROR, "stream %d, missing mandatory atoms, broken header\n",
st->index);
sc->sample_count = 0; //ignore track sc->sample_count = 0; //ignore track
return 0; return 0;
} }