Ticket #1786: xvid_tff.diff

File xvid_tff.diff, 642 bytes (added by reimar, 16 years ago)

Set TFF flag for xvid the same way as for lavc

  • libmpcodecs/ve_xvid4.c

     
    12601260                return BAD;
    12611261        }
    12621262
     1263        if (frame->vol_flags & XVID_VOL_INTERLACING) {
     1264                if ((mpi->fields & MP_IMGFIELD_ORDERED) &&
     1265                    (mpi->fields & MP_IMGFIELD_INTERLACED) &&
     1266                    !(mpi->fields & MP_IMGFIELD_TOP_FIRST))
     1267                        frame->vop_flags &= ~XVID_VOP_TOPFIELDFIRST;
     1268                else
     1269                        frame->vop_flags |= XVID_VOP_TOPFIELDFIRST;
     1270        }
     1271
    12631272        /* Bind source frame */
    12641273        frame->input.plane[0]  = mpi->planes[0];
    12651274        frame->input.plane[1]  = mpi->planes[1];