mov: Write prof section of tapt tag
authorAidan Skinner <aidan@skinner.me.uk>
Mon, 21 Apr 2014 13:47:38 +0000 (14:47 +0100)
committerLuca Barbato <lu_zero@gentoo.org>
Fri, 25 Apr 2014 15:38:19 +0000 (17:38 +0200)
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
libavformat/movenc.c

index afc73ca..8b53232 100644 (file)
@@ -1528,6 +1528,12 @@ static int mov_write_tapt_tag(AVIOContext *pb, MOVTrack *track)
     avio_wb32(pb, track->enc->height << 16);
 
     avio_wb32(pb, 20);
+    ffio_wfourcc(pb, "prof");
+    avio_wb32(pb, 0);
+    avio_wb32(pb, width << 16);
+    avio_wb32(pb, track->enc->height << 16);
+
+    avio_wb32(pb, 20);
     ffio_wfourcc(pb, "enof");
     avio_wb32(pb, 0);
     avio_wb32(pb, track->enc->width << 16);