diff 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
line wrap: on
line diff
--- a/mov.c	Thu Mar 27 13:16:29 2008 +0000
+++ b/mov.c	Thu Mar 27 13:19:19 2008 +0000
@@ -1237,7 +1237,8 @@
     /* 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;
     }