Ticket #1815: 0001-copy-default-and-forced-track-flags.patch

File 0001-copy-default-and-forced-track-flags.patch, 974 bytes (added by billie, 4 years ago)

Possible fix to copy the track flags

  • libavformat/matroskaenc.c

    From 1cfd1478d6d190f0264f11887b20877373698729 Mon Sep 17 00:00:00 2001
    From: Daniel Pielmeier <daniel.pielmeier@gmail.com>
    Date: Sat, 13 Oct 2012 18:59:23 +0200
    Subject: [PATCH] Proper copying of default and forced track flags for
     matroska files.
    
    ---
     libavformat/matroskaenc.c |    1 +
     1 files changed, 1 insertions(+), 0 deletions(-)
    
    diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
    index 375f728..2d492a8 100644
    a b static int mkv_write_tracks(AVFormatContext *s) 
    568568        put_ebml_string(pb, MATROSKA_ID_TRACKLANGUAGE, tag ? tag->value:"und"); 
    569569 
    570570        if (st->disposition) 
     571            put_ebml_uint(pb, MATROSKA_ID_TRACKFLAGFORCED, !!(st->disposition & AV_DISPOSITION_FORCED)); 
    571572            put_ebml_uint(pb, MATROSKA_ID_TRACKFLAGDEFAULT, !!(st->disposition & AV_DISPOSITION_DEFAULT)); 
    572573 
    573574        // look for a codec ID string specific to mkv to use,