aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/cafenc.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2011-07-24 23:52:42 +0200
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2011-07-24 23:52:42 +0200
commit88084eecdfd163802a47501935408acbe07b1691 (patch)
treeadf849f1c64a3858108ed7e9d1048ae252f6435e /libavformat/cafenc.c
parent9e4ed295dab61fe0538a73ab88070e3af201f1e6 (diff)
downloadffmpeg-88084eecdfd163802a47501935408acbe07b1691.tar.gz
Use little endian for caf codec tags.
Diffstat (limited to 'libavformat/cafenc.c')
-rw-r--r--libavformat/cafenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/cafenc.c b/libavformat/cafenc.c
index 43f56624a7..c324b8ead4 100644
--- a/libavformat/cafenc.c
+++ b/libavformat/cafenc.c
@@ -114,7 +114,7 @@ static int caf_write_header(AVFormatContext *s)
case CODEC_ID_PCM_F64BE:
case CODEC_ID_PCM_ALAW:
case CODEC_ID_PCM_MULAW:
- codec_tag = MKBETAG('l','p','c','m');
+ codec_tag = MKTAG('l','p','c','m');
}
if (!codec_tag) {
@@ -134,7 +134,7 @@ static int caf_write_header(AVFormatContext *s)
ffio_wfourcc(pb, "desc"); //< Audio Description chunk
avio_wb64(pb, 32); //< mChunkSize
avio_wb64(pb, av_dbl2int(enc->sample_rate)); //< mSampleRate
- avio_wb32(pb, codec_tag); //< mFormatID
+ avio_wl32(pb, codec_tag); //< mFormatID
avio_wb32(pb, codec_flags(enc->codec_id)); //< mFormatFlags
avio_wb32(pb, enc->block_align); //< mBytesPerPacket
avio_wb32(pb, samples_per_packet(enc->codec_id, enc->channels)); //< mFramesPerPacket