diff options
author | Paul B Mahol <onemda@gmail.com> | 2012-12-28 22:06:39 +0000 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2012-12-28 22:06:39 +0000 |
commit | f18d2137d6e72fa2b65e5c4d4c3544f54498ef9a (patch) | |
tree | 0e3cae0daed99ae7dfaf6571802c6e322fdc4fe4 /libavformat/aiffenc.c | |
parent | 8ad010a7e080cf622cbc65f8ee9f33f3360cc57e (diff) | |
download | ffmpeg-f18d2137d6e72fa2b65e5c4d4c3544f54498ef9a.tar.gz |
aiffenc: use ff_raw_write_packet()
Signed-off-by: Paul B Mahol <onemda@gmail.com>
Diffstat (limited to 'libavformat/aiffenc.c')
-rw-r--r-- | libavformat/aiffenc.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/libavformat/aiffenc.c b/libavformat/aiffenc.c index ba5f607ff8..df6c756b7a 100644 --- a/libavformat/aiffenc.c +++ b/libavformat/aiffenc.c @@ -25,6 +25,7 @@ #include "aiff.h" #include "avio_internal.h" #include "isom.h" +#include "rawenc.h" typedef struct { int64_t form; @@ -118,13 +119,6 @@ static int aiff_write_header(AVFormatContext *s) return 0; } -static int aiff_write_packet(AVFormatContext *s, AVPacket *pkt) -{ - AVIOContext *pb = s->pb; - avio_write(pb, pkt->data, pkt->size); - return 0; -} - static int aiff_write_trailer(AVFormatContext *s) { AVIOContext *pb = s->pb; @@ -170,7 +164,7 @@ AVOutputFormat ff_aiff_muxer = { .audio_codec = AV_CODEC_ID_PCM_S16BE, .video_codec = AV_CODEC_ID_NONE, .write_header = aiff_write_header, - .write_packet = aiff_write_packet, + .write_packet = ff_raw_write_packet, .write_trailer = aiff_write_trailer, .codec_tag = (const AVCodecTag* const []){ ff_codec_aiff_tags, 0 }, }; |