[FFmpeg-cvslog] avformat/movenc: HE-AAC correct FourCC in ISML

Yann Coupin git at videolan.org
Fri Dec 4 03:52:47 CET 2015


ffmpeg | branch: master | Yann Coupin <yann.coupin+ffmpeg at gmail.com> | Tue Dec  1 12:22:38 2015 +0100| [d89c4846e0d6caee595023657040f351f1ef3fc4] | committer: Michael Niedermayer

avformat/movenc: HE-AAC correct FourCC in ISML

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d89c4846e0d6caee595023657040f351f1ef3fc4
---

 libavformat/movenc.c |   12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index dc84c62..9e168da 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");
             }



More information about the ffmpeg-cvslog mailing list