Ticket #2298: patchpmp.diff

File patchpmp.diff, 529 bytes (added by cehoyos, 3 years ago)
  • libavformat/pmpdec.c

    diff --git a/libavformat/pmpdec.c b/libavformat/pmpdec.c
    index 2ea37ef..54a75c5 100644
    a b static int pmp_header(AVFormatContext *s) 
    8787        av_log(s, AV_LOG_ERROR, "Unsupported audio format\n"); 
    8888        break; 
    8989    } 
    90     pmp->num_streams = avio_rl16(pb) + 1; 
    91     avio_skip(pb, 10); 
     90    pmp->num_streams = avio_r8(pb) + 1; 
     91    avio_skip(pb, 11); 
    9292    srate = avio_rl32(pb); 
    9393    channels = avio_rl32(pb) + 1; 
    9494    for (i = 1; i < pmp->num_streams; i++) {