raw GSM demuxer (does not work yet as parser is missing)
authorMichael Niedermayer <michaelni@gmx.at>
Mon, 28 Apr 2008 18:29:42 +0000 (18:29 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Mon, 28 Apr 2008 18:29:42 +0000 (18:29 +0000)
Originally committed as revision 13013 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/allformats.c
libavformat/raw.c

index 9e47a6f7b45e445bb77a2fb0708a0b1cf42f207d..babcf24482a4b8d7e43d171529b9eb73b8e6dafd 100644 (file)
@@ -82,6 +82,7 @@ void av_register_all(void)
     REGISTER_DEMUXER  (FOURXM, fourxm);
     REGISTER_MUXER    (FRAMECRC, framecrc);
     REGISTER_MUXDEMUX (GIF, gif);
+    REGISTER_DEMUXER  (GSM, gsm);
     REGISTER_MUXDEMUX (GXF, gxf);
     REGISTER_MUXDEMUX (H261, h261);
     REGISTER_MUXDEMUX (H263, h263);
index 718727e2d9cac5a045fbc556007a2b79f0cdacf7..ac44b845abb61a59c7eb0c73544086572e3398fc 100644 (file)
@@ -496,6 +496,19 @@ AVInputFormat aac_demuxer = {
     .value = CODEC_ID_AAC,
 };
 
+AVInputFormat gsm_demuxer = {
+    "gsm",
+    "GSM",
+    0,
+    NULL,
+    audio_read_header,
+    raw_read_partial_packet,
+    raw_read_close,
+    .flags= AVFMT_GENERIC_INDEX,
+    .extensions = "gsm",
+    .value = CODEC_ID_GSM,
+};
+
 #ifdef CONFIG_ROQ_MUXER
 AVOutputFormat roq_muxer =
 {