Commit ec07a85c authored by bcoudurier's avatar bcoudurier

print stream index in error message

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12605 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent a38cd066
......@@ -1237,7 +1237,8 @@ static int mov_read_trak(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
/* sanity checks */
if(!sc->stts_count || !sc->chunk_count || !sc->sample_to_chunk_sz ||
(!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
return 0;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment