[FFmpeg-soc] G.723.1 Muxer

Mohamed Naufal naufal11 at gmail.com
Thu Sep 30 21:57:46 CEST 2010


On 21 August 2010 00:35, Aurelien Jacobs <aurel at gnuage.org> wrote:
> On Fri, Aug 20, 2010 at 02:14:43PM +0530, Mohamed Naufal wrote:
>> ---
>>  libavformat/Makefile     |    1 +
>>  libavformat/allformats.c |    2 +-
>>  libavformat/g723_1.c     |   21 +++++++++++++++++++++
>>  3 files changed, 23 insertions(+), 1 deletions(-)
>>
>> [...]
>>
>> diff --git a/libavformat/g723_1.c b/libavformat/g723_1.c
>> index 10125e6..9f4de36 100755
>> --- a/libavformat/g723_1.c
>> +++ b/libavformat/g723_1.c
>> @@ -80,3 +80,24 @@ AVInputFormat g723_1_demuxer = {
>>      g723_1_read_packet,
>>      .extensions = "tco",
>>  };
>> +
>> +#if CONFIG_G723_1_MUXER
>> +static int g723_1_write_packet(AVFormatContext *s, AVPacket *pkt)
>> +{
>> +    put_buffer(s->pb, pkt->data, pkt->size);
>> +    put_flush_packet(s->pb);
>> +    return 0;
>> +}
>> +
>> +AVOutputFormat g723_1_muxer = {
>> +    "g723_1",
>> +    NULL_IF_CONFIG_SMALL("G.723.1 format"),
>> +    "audio/g723",
>> +    "tco",
>> +    0,
>> +    CODEC_ID_G723_1,
>> +    CODEC_ID_NONE,
>> +    NULL,
>> +    g723_1_write_packet,
>> +};
>> +#endif
>
> This should be implemented as a raw muxer in raw.c.
> See mlp_muxer for an example.
>


Fixed locally.

Thanks
Naufal


More information about the FFmpeg-soc mailing list