[FFmpeg-cvslog] r23205 - in branches/0.6: . libavformat/nutdec.c

siretart subversion
Fri May 21 00:46:11 CEST 2010


Author: siretart
Date: Fri May 21 00:46:11 2010
New Revision: 23205

Log:
Make the nut demuxer issue a more meaningful error message if it
cannot recognize the provided codec tag.

backport r23071 by stefano

Modified:
   branches/0.6/   (props changed)
   branches/0.6/libavformat/nutdec.c

Modified: branches/0.6/libavformat/nutdec.c
==============================================================================
--- branches/0.6/libavformat/nutdec.c	Fri May 21 00:45:00 2010	(r23204)
+++ branches/0.6/libavformat/nutdec.c	Fri May 21 00:46:11 2010	(r23205)
@@ -334,7 +334,8 @@ static int decode_stream_header(NUTConte
             return -1;
     }
     if(class<3 && st->codec->codec_id == CODEC_ID_NONE)
-        av_log(s, AV_LOG_ERROR, "Unknown codec?!\n");
+        av_log(s, AV_LOG_ERROR, "Unknown codec tag '0x%04x' for stream number %d\n",
+               (unsigned int)tmp, stream_id);
 
     GET_V(stc->time_base_id    , tmp < nut->time_base_count);
     GET_V(stc->msb_pts_shift   , tmp < 16);



More information about the ffmpeg-cvslog mailing list