Ticket #146: biPlanes.diff

File biPlanes.diff, 789 bytes (added by reimar, 22 years ago)

Always write biPlanes = 1 in the avi muxer

  • muxer_avi.c

    RCS file: /cvsroot/mplayer/main/libmpdemux/muxer_avi.c,v
    retrieving revision 1.29
    diff -u -r1.29 muxer_avi.c
     
    424424      case MUXER_TYPE_VIDEO:
    425425{
    426426          int biSize=s->bih->biSize;
     427          int planes = s->bih->biPlanes;
     428          // according to the specs this must always be 1
     429          s->bih->biPlanes = 1;
    427430          le2me_BITMAPINFOHEADER(s->bih);
    428431          write_avi_chunk(f,ckidSTREAMFORMAT,biSize,s->bih); /* BITMAPINFOHEADER */
    429432          le2me_BITMAPINFOHEADER(s->bih);
     433          s->bih->biPlanes = planes;
    430434
    431435          if (aspect != 0) {
    432436              int fields = vprp.nbFieldPerFrame;