10l: wrong bitmask when patching the pce_ptr in soft_telecine()

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21485 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
nicodvb 2006-12-04 00:52:11 +00:00
parent 8b89312ae7
commit 6dc68e8680
1 changed files with 3 additions and 1 deletions

View File

@ -1670,7 +1670,9 @@ static int soft_telecine(muxer_priv_t *priv, muxer_headers_t *vpriv, uint8_t *fp
}
else if(vpriv->telecine == TELECINE_DGPULLDOWN)
{
pce_ptr[3] = (pce_ptr[3] & 0xfd) | bff_mask[vpriv->display_frame % MAX_PATTERN_LENGTH];
tff = (bff_mask[vpriv->display_frame % MAX_PATTERN_LENGTH] & 0x2) ? 0x80 : 0;
rff = (bff_mask[vpriv->display_frame % MAX_PATTERN_LENGTH] & 0x1) ? 0x02 : 0;
pce_ptr[3] = (pce_ptr[3] & 0xfd) | tff | rff;
}
else
{