[FFmpeg-soc] [soc] soc g723.1

naufal11 at gmail.com naufal11 at gmail.com
Sat May 29 17:46:01 CEST 2010



- Log -----------------------------------------------------------------
commit f88ce69634a9def332abda541439dfad031bd8b6
Author: Naufal <naufal11 at gmail.com>
Date:   Sat May 29 21:13:59 2010 +0530

    Add G723.1 raw bitstream read support

diff --git a/libavformat/Makefile b/libavformat/Makefile
index ac812cc..1cb5d00 100644
--- a/libavformat/Makefile
+++ b/libavformat/Makefile
@@ -79,6 +79,7 @@ OBJS-$(CONFIG_FLV_MUXER)                 += flvenc.o avc.o
 OBJS-$(CONFIG_FOURXM_DEMUXER)            += 4xm.o
 OBJS-$(CONFIG_FRAMECRC_MUXER)            += framecrcenc.o
 OBJS-$(CONFIG_FRAMEMD5_MUXER)            += md5enc.o
+OBJS-$(CONFIG_G723_1_DEMUXER)            += raw.o
 OBJS-$(CONFIG_GIF_MUXER)                 += gif.o
 OBJS-$(CONFIG_GSM_DEMUXER)               += raw.o id3v2.o
 OBJS-$(CONFIG_GXF_DEMUXER)               += gxf.o
diff --git a/libavformat/raw.c b/libavformat/raw.c
index 7837de8..00c43f1 100644
--- a/libavformat/raw.c
+++ b/libavformat/raw.c
@@ -871,6 +871,20 @@ AVOutputFormat eac3_muxer = {
 };
 #endif
 
+#if CONFIG_G723_1_DEMUXER
+AVInputFormat g723_1_demuxer = {
+    "g723_1",
+    NULL_IF_CONFIG_SMALL("raw G723.1"),
+    0,
+    NULL,
+    audio_read_header,
+    ff_raw_read_partial_packet,
+    .flags = AVFMT_GENERIC_INDEX,
+    .extensions = "tco",
+    .value = CODEC_ID_G723_1,
+};
+#endif
+
 #if CONFIG_GSM_DEMUXER
 AVInputFormat gsm_demuxer = {
     "gsm",

-----------------------------------------------------------------------

Summary of changes:
 libavformat/Makefile |    1 +
 libavformat/raw.c    |   14 ++++++++++++++
 2 files changed, 15 insertions(+), 0 deletions(-)


-- 
http://github.com/naufal/ffmpeg-soc


More information about the FFmpeg-soc mailing list