Ticket #320: patchautodetectloas.diff

File patchautodetectloas.diff, 801 bytes (added by cehoyos, 5 years ago)
  • libavformat/mpegts.c

    diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c
    index 68e3a76..f824315 100644
    a b static const StreamType ISO_types[] = { 
    525525    { 0x04, AVMEDIA_TYPE_AUDIO,        CODEC_ID_MP3 }, 
    526526    { 0x0f, AVMEDIA_TYPE_AUDIO,        CODEC_ID_AAC }, 
    527527    { 0x10, AVMEDIA_TYPE_VIDEO,      CODEC_ID_MPEG4 }, 
    528     { 0x11, AVMEDIA_TYPE_AUDIO,   CODEC_ID_AAC_LATM }, /* LATM syntax */ 
     528    /* Makito encoder sets stream type 0x11 for AAC, 
     529     * so auto-detect LOAS/LATM instead of hardcoding it. */ 
     530//  { 0x11, AVMEDIA_TYPE_AUDIO,   CODEC_ID_AAC_LATM }, /* LATM syntax */ 
    529531    { 0x1b, AVMEDIA_TYPE_VIDEO,       CODEC_ID_H264 }, 
    530532    { 0xd1, AVMEDIA_TYPE_VIDEO,      CODEC_ID_DIRAC }, 
    531533    { 0xea, AVMEDIA_TYPE_VIDEO,        CODEC_ID_VC1 },