diff options
author | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-12-04 00:52:11 +0000 |
---|---|---|
committer | nicodvb <nicodvb@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2006-12-04 00:52:11 +0000 |
commit | 6dc68e86803ef452283e926d9bac204ecae9e60e (patch) | |
tree | 4c5f6a5197306b31289db5906a9ad200b6f3e798 | |
parent | 8b89312ae78ea14fe44810497f58c6ff8cdb56a2 (diff) | |
download | mpv-6dc68e86803ef452283e926d9bac204ecae9e60e.tar.bz2 mpv-6dc68e86803ef452283e926d9bac204ecae9e60e.tar.xz |
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
-rw-r--r-- | libmpdemux/muxer_mpeg.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libmpdemux/muxer_mpeg.c b/libmpdemux/muxer_mpeg.c index c3fab0c247..0121c8bb45 100644 --- a/libmpdemux/muxer_mpeg.c +++ b/libmpdemux/muxer_mpeg.c @@ -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 { |