• Kostya Shishkov's avatar
    read AVI palette from the end of extradata · 23f40a07
    Kostya Shishkov authored
    Official AVI specification says that stream header in case of video contains
    BITMAPINFO, which is equal to BITMAPINFOHEADER and optional palette. Currently
    lavf AVI demuxer thinks otherwise which produces garbage on codecs that have
    both palette and extradata (luckily, there are not so many such codecs).
    
    An example of such file is:
    http://samples.multimedia.cx/V-codecs/KMVC/baseball1.avi
    
    
    (IIRC, MSS1 or MSS2 also had such situation but they are still not supported
    by lavc).
    
    As a side note, passing palette in extradata as it's been done previously is
    not quite correct since proper _extra_ data is surplus bytes in
    BITMAPINFOHEADER, not including palette.
    
    Signed-off-by: default avatarRonald S. Bultje <rsbultje@gmail.com>
    23f40a07