[FFmpeg-cvslog] movenc: Don't set a default sample duration when creating ismv

Martin Storsjö git at videolan.org
Fri Feb 17 00:45:06 CET 2012


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Tue Jan 31 15:23:26 2012 +0200| [51df7b232f19f85188cca30fce26eb3587126ab3] | committer: Martin Storsjö

movenc: Don't set a default sample duration when creating ismv

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

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

 libavformat/movenc.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index ce00866..ace7b2f 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -2175,10 +2175,11 @@ static int mov_write_tfhd_tag(AVIOContext *pb, MOVTrack *track,
         flags |= 0x20; /* default-sample-flags-present */
     }
 
-    /* Don't set a default sample size when creating data for silverlight,
-     * the player refuses to play files with that set. */
+    /* Don't set a default sample size, the silverlight player refuses
+     * to play files with that set. Don't set a default sample duration,
+     * WMP freaks out if it is set. */
     if (track->mode == MODE_ISM)
-        flags &= ~0x10;
+        flags &= ~0x18;
 
     avio_wb32(pb, 0); /* size placeholder */
     ffio_wfourcc(pb, "tfhd");



More information about the ffmpeg-cvslog mailing list