On Thu, 16 Feb 2012, Ronald S. Bultje wrote:

Hi,

On Tue, Jan 31, 2012 at 5:34 AM, Martin Storsjö <[email protected]> wrote:
---
 libavformat/movenc.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 5c5d39e..a33f315 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -2125,10 +2125,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;

OK.

In the future, making these flags individual defines may help
readability without a spec handy.

Yes, that's a good point. I hope to have a look at that later.

// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to