[Ffmpeg-cvslog] CVS: ffmpeg/libavformat utils.c,1.181,1.182

Michael Niedermayer CVS michael
Tue Mar 21 12:29:53 CET 2006


Update of /cvsroot/ffmpeg/ffmpeg/libavformat
In directory mail:/var2/tmp/cvs-serv4541

Modified Files:
	utils.c 
Log Message:
provide more info on which streams lack codec parameters


Index: utils.c
===================================================================
RCS file: /cvsroot/ffmpeg/ffmpeg/libavformat/utils.c,v
retrieving revision 1.181
retrieving revision 1.182
diff -u -d -r1.181 -r1.182
--- utils.c	11 Mar 2006 00:22:21 -0000	1.181
+++ utils.c	21 Mar 2006 11:29:50 -0000	1.182
@@ -1931,8 +1931,12 @@
             ret = -1; /* we could not have all the codec parameters before EOF */
             for(i=0;i<ic->nb_streams;i++) {
                 st = ic->streams[i];
-                if (!has_codec_parameters(st->codec))
+                if (!has_codec_parameters(st->codec)){
+                    char buf[256];
+                    avcodec_string(buf, sizeof(buf), st->codec, 0);
+                    av_log(ic, AV_LOG_INFO, "Could not find codec parameters (%s)\n", buf);
                     break;
+                }
             }
             if (i == ic->nb_streams)
                 ret = 0;





More information about the ffmpeg-cvslog mailing list