mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 08:12:44 +00:00
au: use ff_raw_write_packet()
This commit is contained in:
parent
bdd00e2d1b
commit
c88d245c98
@ -65,7 +65,7 @@ OBJS-$(CONFIG_ASF_MUXER) += asfenc.o asf.o
|
||||
OBJS-$(CONFIG_ASS_DEMUXER) += assdec.o
|
||||
OBJS-$(CONFIG_ASS_MUXER) += assenc.o
|
||||
OBJS-$(CONFIG_AU_DEMUXER) += au.o pcm.o
|
||||
OBJS-$(CONFIG_AU_MUXER) += au.o
|
||||
OBJS-$(CONFIG_AU_MUXER) += au.o rawenc.o
|
||||
OBJS-$(CONFIG_AVI_DEMUXER) += avidec.o
|
||||
OBJS-$(CONFIG_AVI_MUXER) += avienc.o
|
||||
OBJS-$(CONFIG_AVISYNTH) += avisynth.o
|
||||
|
@ -154,6 +154,8 @@ AVInputFormat ff_au_demuxer = {
|
||||
|
||||
#if CONFIG_AU_MUXER
|
||||
|
||||
#include "rawenc.h"
|
||||
|
||||
/* if we don't know the size in advance */
|
||||
#define AU_UNKNOWN_SIZE ((uint32_t)(~0))
|
||||
|
||||
@ -187,13 +189,6 @@ static int au_write_header(AVFormatContext *s)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int au_write_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
{
|
||||
AVIOContext *pb = s->pb;
|
||||
avio_write(pb, pkt->data, pkt->size);
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int au_write_trailer(AVFormatContext *s)
|
||||
{
|
||||
AVIOContext *pb = s->pb;
|
||||
@ -221,7 +216,7 @@ AVOutputFormat ff_au_muxer = {
|
||||
.audio_codec = AV_CODEC_ID_PCM_S16BE,
|
||||
.video_codec = AV_CODEC_ID_NONE,
|
||||
.write_header = au_write_header,
|
||||
.write_packet = au_write_packet,
|
||||
.write_packet = ff_raw_write_packet,
|
||||
.write_trailer = au_write_trailer,
|
||||
.codec_tag = (const AVCodecTag* const []){ codec_au_tags, 0 },
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user