Ticket #1398: 0001-adtsenc-signal-mpeg-2-aac.patch

File 0001-adtsenc-signal-mpeg-2-aac.patch, 848 bytes (added by Hendrik, 13 years ago)

To the original issue, attached patch can be tried, it solved a similar issue for me at some point. The problem was not the DTS itself, but the ADTS muxing in MPEG-TS.

  • libavformat/adtsenc.c

    From 8328e7b32ce3f087ca22105aab0f83b5cce9086d Mon Sep 17 00:00:00 2001
    From: Hendrik Leppkes <h.leppkes@gmail.com>
    Date: Sat, 8 Jun 2013 14:42:43 +0200
    Subject: [PATCH] adtsenc: signal mpeg-2 aac
    
    ---
     libavformat/adtsenc.c | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/libavformat/adtsenc.c b/libavformat/adtsenc.c
    index 60d7b07..c25a5b2 100644
    a b static int adts_write_frame_header(ADTSContext *ctx,  
    116116
    117117    /* adts_fixed_header */
    118118    put_bits(&pb, 12, 0xfff);   /* syncword */
    119     put_bits(&pb, 1, 0);        /* ID */
     119    put_bits(&pb, 1, 1);        /* ID */
    120120    put_bits(&pb, 2, 0);        /* layer */
    121121    put_bits(&pb, 1, 1);        /* protection_absent */
    122122    put_bits(&pb, 2, ctx->objecttype); /* profile_objecttype */