[FFmpeg-cvslog] r23434 - trunk/libavformat/nutenc.c

stefano subversion
Wed Jun 2 23:57:40 CEST 2010


Author: stefano
Date: Wed Jun  2 23:57:40 2010
New Revision: 23434

Log:
Make write_streamheader() log a message if there is no codec tag
defined.

Modified:
   trunk/libavformat/nutenc.c

Modified: trunk/libavformat/nutenc.c
==============================================================================
--- trunk/libavformat/nutenc.c	Wed Jun  2 23:57:37 2010	(r23433)
+++ trunk/libavformat/nutenc.c	Wed Jun  2 23:57:40 2010	(r23434)
@@ -404,8 +404,10 @@ static int write_streamheader(AVFormatCo
     put_v(bc, 4);
     if (codec->codec_tag){
         put_le32(bc, codec->codec_tag);
-    }else
+    } else {
+        av_log(avctx, AV_LOG_ERROR, "No codec tag defined for stream %d\n", i);
         return AVERROR(EINVAL);
+    }
 
     put_v(bc, nut->stream[i].time_base - nut->time_base);
     put_v(bc, nut->stream[i].msb_pts_shift);



More information about the ffmpeg-cvslog mailing list