X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fcafenc.c;h=c324b8ead45a065ae2e54226b6418cdb116ea068;hb=88084eecdfd163802a47501935408acbe07b1691;hp=43f56624a7dc819ef6c3401eff00720dc16fa337;hpb=9e4ed295dab61fe0538a73ab88070e3af201f1e6;p=ffmpeg diff --git a/libavformat/cafenc.c b/libavformat/cafenc.c index 43f56624a7d..c324b8ead45 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