Mercurial > libavformat.hg
changeset 3269:55d4f01c9728 libavformat
raw GSM demuxer (does not work yet as parser is missing)
author | michael |
---|---|
date | Mon, 28 Apr 2008 18:29:42 +0000 |
parents | 319c36da904b |
children | 567f8a365db0 |
files | allformats.c raw.c |
diffstat | 2 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/allformats.c Mon Apr 28 14:14:44 2008 +0000 +++ b/allformats.c Mon Apr 28 18:29:42 2008 +0000 @@ -82,6 +82,7 @@ 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);
--- a/raw.c Mon Apr 28 14:14:44 2008 +0000 +++ b/raw.c Mon Apr 28 18:29:42 2008 +0000 @@ -496,6 +496,19 @@ .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 = {