[FFmpeg-cvslog] r13013 - in trunk/libavformat: allformats.c raw.c

michael subversion
Mon Apr 28 20:29:42 CEST 2008


Author: michael
Date: Mon Apr 28 20:29:42 2008
New Revision: 13013

Log:
raw gsm demuxer (doesnt work yet as parser is missing)


Modified:
   trunk/libavformat/allformats.c
   trunk/libavformat/raw.c

Modified: trunk/libavformat/allformats.c
==============================================================================
--- trunk/libavformat/allformats.c	(original)
+++ trunk/libavformat/allformats.c	Mon Apr 28 20:29:42 2008
@@ -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);

Modified: trunk/libavformat/raw.c
==============================================================================
--- trunk/libavformat/raw.c	(original)
+++ trunk/libavformat/raw.c	Mon Apr 28 20:29:42 2008
@@ -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 =
 {




More information about the ffmpeg-cvslog mailing list