Make the nut demuxer issue a more meaningful error message if it
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 9 May 2010 22:56:02 +0000 (22:56 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 9 May 2010 22:56:02 +0000 (22:56 +0000)
cannot recognize the provided codec tag.

Originally committed as revision 23071 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/nutdec.c

index 522affb..5d5cd55 100644 (file)
@@ -334,7 +334,8 @@ static int decode_stream_header(NUTContext *nut){
             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);