mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
g723.1 muxer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
059707ee2d
commit
19562b68cb
@ -99,6 +99,7 @@ OBJS-$(CONFIG_GXF_MUXER) += gxfenc.o audiointerleave.o
|
|||||||
OBJS-$(CONFIG_G722_DEMUXER) += rawdec.o
|
OBJS-$(CONFIG_G722_DEMUXER) += rawdec.o
|
||||||
OBJS-$(CONFIG_G722_MUXER) += rawenc.o
|
OBJS-$(CONFIG_G722_MUXER) += rawenc.o
|
||||||
OBJS-$(CONFIG_G723_1_DEMUXER) += g723_1.o
|
OBJS-$(CONFIG_G723_1_DEMUXER) += g723_1.o
|
||||||
|
OBJS-$(CONFIG_G723_1_MUXER) += g723_1.o
|
||||||
OBJS-$(CONFIG_H261_DEMUXER) += h261dec.o rawdec.o
|
OBJS-$(CONFIG_H261_DEMUXER) += h261dec.o rawdec.o
|
||||||
OBJS-$(CONFIG_H261_MUXER) += rawenc.o
|
OBJS-$(CONFIG_H261_MUXER) += rawenc.o
|
||||||
OBJS-$(CONFIG_H263_DEMUXER) += h263dec.o rawdec.o
|
OBJS-$(CONFIG_H263_DEMUXER) += h263dec.o rawdec.o
|
||||||
|
@ -100,7 +100,7 @@ void av_register_all(void)
|
|||||||
REGISTER_MUXER (FRAMECRC, framecrc);
|
REGISTER_MUXER (FRAMECRC, framecrc);
|
||||||
REGISTER_MUXER (FRAMEMD5, framemd5);
|
REGISTER_MUXER (FRAMEMD5, framemd5);
|
||||||
REGISTER_MUXDEMUX (G722, g722);
|
REGISTER_MUXDEMUX (G722, g722);
|
||||||
REGISTER_DEMUXER (G723_1, g723_1);
|
REGISTER_MUXDEMUX (G723_1, g723_1);
|
||||||
REGISTER_MUXER (GIF, gif);
|
REGISTER_MUXER (GIF, gif);
|
||||||
REGISTER_DEMUXER (GSM, gsm);
|
REGISTER_DEMUXER (GSM, gsm);
|
||||||
REGISTER_MUXDEMUX (GXF, gxf);
|
REGISTER_MUXDEMUX (GXF, gxf);
|
||||||
|
@ -81,3 +81,24 @@ AVInputFormat ff_g723_1_demuxer = {
|
|||||||
.extensions = "tco,rco",
|
.extensions = "tco,rco",
|
||||||
.flags = AVFMT_GENERIC_INDEX
|
.flags = AVFMT_GENERIC_INDEX
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#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 ff_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
|
||||||
|
Loading…
Reference in New Issue
Block a user