diff options
author | Anton Khirnov <anton@khirnov.net> | 2011-02-24 07:36:02 +0100 |
---|---|---|
committer | Ronald S. Bultje <rsbultje@gmail.com> | 2011-02-25 14:38:22 -0500 |
commit | 0abdb2931719d96dee725e555e9b46b2b2f8a6be (patch) | |
tree | 754205c09fa6f9b77b1700cffec28828d539d5e3 /libavformat/soxenc.c | |
parent | 7e06e0ede3b798f591634b277e8dfa6507b196de (diff) | |
download | ffmpeg-0abdb2931719d96dee725e555e9b46b2b2f8a6be.tar.gz |
lavf: use a new ffio_wfourcc macro instead of put_tag() where possible
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
Diffstat (limited to 'libavformat/soxenc.c')
-rw-r--r-- | libavformat/soxenc.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libavformat/soxenc.c b/libavformat/soxenc.c index 75141de789..9c06dd7ea3 100644 --- a/libavformat/soxenc.c +++ b/libavformat/soxenc.c @@ -31,6 +31,7 @@ #include "libavutil/intreadwrite.h" #include "avformat.h" +#include "avio_internal.h" #include "sox.h" typedef struct { @@ -53,14 +54,14 @@ static int sox_write_header(AVFormatContext *s) sox->header_size = SOX_FIXED_HDR + comment_size; if (enc->codec_id == CODEC_ID_PCM_S32LE) { - put_tag(pb, ".SoX"); + ffio_wfourcc(pb, ".SoX"); avio_wl32(pb, sox->header_size); avio_wl64(pb, 0); /* number of samples */ avio_wl64(pb, av_dbl2int(enc->sample_rate)); avio_wl32(pb, enc->channels); avio_wl32(pb, comment_size); } else if (enc->codec_id == CODEC_ID_PCM_S32BE) { - put_tag(pb, "XoS."); + ffio_wfourcc(pb, "XoS."); avio_wb32(pb, sox->header_size); avio_wb64(pb, 0); /* number of samples */ avio_wb64(pb, av_dbl2int(enc->sample_rate)); |