Ticket #146: mov_planes.patch

File mov_planes.patch, 693 bytes (added by richardv@…, 22 years ago)

Proposed fix

  • libmpdemux/demux_mov.c

    RCS file: /cvs/mplayer/libmpdemux/demux_mov.c,v
    retrieving revision 1.2
    diff -u -r1.2 demux_mov.c
     
    12611261                }
    12621262                sh->bih->biWidth=sh->disp_w;
    12631263                sh->bih->biHeight=sh->disp_h;
    1264                 sh->bih->biPlanes=0;
     1264                sh->bih->biPlanes=1; /* according to the BITMAPINFOHEADER spec,
     1265                                      * biPlanes "must be set to 1". */
    12651266                sh->bih->biBitCount=depth;
    12661267                sh->bih->biCompression=trak->fourcc;
    12671268                sh->bih->biSizeImage=sh->bih->biWidth*sh->bih->biHeight;