[FFmpeg-cvslog] movenc: Signal iso6 in compatible_brands when using tfdt

Martin Storsjö git at videolan.org
Thu Oct 30 03:17:20 CET 2014


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Wed Oct 29 17:00:38 2014 +0200| [600d5ee6b12bad144756b0772319bb04796bc528] | committer: Martin Storsjö

movenc: Signal iso6 in compatible_brands when using tfdt

Signed-off-by: Martin Storsjö <martin at martin.st>

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

 libavformat/movenc.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index c50adb6..1f5d972 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -2742,6 +2742,11 @@ static int mov_write_ftyp_tag(AVIOContext *pb, AVFormatContext *s)
             ffio_wfourcc(pb, "avc1");
     }
 
+    // We add tfdt atoms when fragmenting, signal this with the iso6 compatible
+    // brand. This is compatible with users that don't understand tfdt.
+    if (mov->flags & FF_MOV_FLAG_FRAGMENT)
+        ffio_wfourcc(pb, "iso6");
+
     if (mov->mode == MODE_3GP)
         ffio_wfourcc(pb, has_h264 ? "3gp6":"3gp4");
     else if (mov->mode & MODE_3G2)



More information about the ffmpeg-cvslog mailing list