Make the nut decoder read the ff_nut_video_tags to detect codec id of
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 23 May 2010 18:34:18 +0000 (18:34 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 23 May 2010 18:34:18 +0000 (18:34 +0000)
the input file.

This is required as Nut codec tags are not contained in
ff_codec_bmp_tags.

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

libavformat/nutdec.c

index 293f67d..eed644c 100644 (file)
@@ -316,7 +316,9 @@ static int decode_stream_header(NUTContext *nut){
     {
         case 0:
             st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
-            st->codec->codec_id = ff_codec_get_id(ff_codec_bmp_tags, tmp);
+            st->codec->codec_id = av_codec_get_id(
+                (const AVCodecTag * const []) { ff_codec_bmp_tags, ff_nut_video_tags, 0 },
+                tmp);
             break;
         case 1:
             st->codec->codec_type = AVMEDIA_TYPE_AUDIO;