summaryrefslogtreecommitdiff
path: root/libavformat/movenc.c
diff options
context:
space:
mode:
authorYann Coupin <yann.coupin+ffmpeg@gmail.com>2015-12-01 12:22:38 +0100
committerMichael Niedermayer <michael@niedermayer.cc>2015-12-04 03:52:25 +0100
commitd89c4846e0d6caee595023657040f351f1ef3fc4 (patch)
treee991203816b1290870d927dfd5f7df98e3242516 /libavformat/movenc.c
parent9696a01f12627a8d15d321b63a534305aeead775 (diff)
avformat/movenc: HE-AAC correct FourCC in ISML
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat/movenc.c')
-rw-r--r--libavformat/movenc.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index dc84c628bc..9e168da003 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -3334,7 +3334,17 @@ static int mov_write_isml_manifest(AVIOContext *pb, MOVMuxContext *mov)
param_write_int(pb, "DisplayHeight", track->enc->height);
} else {
if (track->enc->codec_id == AV_CODEC_ID_AAC) {
- param_write_string(pb, "FourCC", "AACL");
+ switch (track->enc->profile)
+ {
+ case FF_PROFILE_AAC_HE_V2:
+ param_write_string(pb, "FourCC", "AACP");
+ break;
+ case FF_PROFILE_AAC_HE:
+ param_write_string(pb, "FourCC", "AACH");
+ break;
+ default:
+ param_write_string(pb, "FourCC", "AACL");
+ }
} else if (track->enc->codec_id == AV_CODEC_ID_WMAPRO) {
param_write_string(pb, "FourCC", "WMAP");
}