Put correct fourcc in tag field for amr_nb (samr) and amr_wb (sawb)
authorRoberto Togni <r_togni@tiscali.it>
Sun, 24 Apr 2005 11:15:35 +0000 (11:15 +0000)
committerRoberto Togni <r_togni@tiscali.it>
Sun, 24 Apr 2005 11:15:35 +0000 (11:15 +0000)
Originally committed as revision 4152 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/amr.c

index 2a7f6d0..21f41b7 100644 (file)
@@ -101,7 +101,7 @@ static int amr_read_header(AVFormatContext *s,
         }
     
         st->codec.codec_type = CODEC_TYPE_AUDIO;
-        st->codec.codec_tag = CODEC_ID_AMR_WB;
+        st->codec.codec_tag = MKTAG('s', 'a', 'w', 'b');
         st->codec.codec_id = CODEC_ID_AMR_WB;
         st->codec.channels = 1;
         st->codec.sample_rate = 16000;
@@ -115,7 +115,7 @@ static int amr_read_header(AVFormatContext *s,
         }
     
         st->codec.codec_type = CODEC_TYPE_AUDIO;
-        st->codec.codec_tag = CODEC_ID_AMR_NB;
+        st->codec.codec_tag = MKTAG('s', 'a', 'm', 'r');
         st->codec.codec_id = CODEC_ID_AMR_NB;
         st->codec.channels = 1;
         st->codec.sample_rate = 8000;