Ticket #4786: patchmpegmlp.diff

File patchmpegmlp.diff, 493 bytes (added by cehoyos, 4 years ago)
  • libavformat/mpeg.c

    diff --git a/libavformat/mpeg.c b/libavformat/mpeg.c
    index 787d5f0..2f48459 100644
    a b redo: 
    568568        codec_id = AV_CODEC_ID_DTS;
    569569    } else if (startcode >= 0xa0 && startcode <= 0xaf) {
    570570        type     = AVMEDIA_TYPE_AUDIO;
    571         if (lpcm_header_len == 6) {
     571        if (lpcm_header_len == 6 || startcode == 0xa1) {
    572572            codec_id = AV_CODEC_ID_MLP;
    573573        } else {
    574574            codec_id = AV_CODEC_ID_PCM_DVD;