mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-25 04:19:05 +00:00
H.264: disable 2tap qpel with CODEC_FLAG2_FAST and >8-bit
2tap qpel isn't implemented yet for high bit depth, so it just breaks decoding.
(cherry picked from commit 9a0dda8b3a
)
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
This commit is contained in:
parent
9b69efc02b
commit
e54fd33848
@ -2485,7 +2485,8 @@ static int decode_slice_header(H264Context *h, H264Context *h0){
|
||||
|
||||
s->dropable= h->nal_ref_idc == 0;
|
||||
|
||||
if((s->avctx->flags2 & CODEC_FLAG2_FAST) && !h->nal_ref_idc){
|
||||
/* FIXME: 2tap qpel isn't implemented for high bit depth. */
|
||||
if((s->avctx->flags2 & CODEC_FLAG2_FAST) && !h->nal_ref_idc && !h->pixel_shift){
|
||||
s->me.qpel_put= s->dsp.put_2tap_qpel_pixels_tab;
|
||||
s->me.qpel_avg= s->dsp.avg_2tap_qpel_pixels_tab;
|
||||
}else{
|
||||
|
Loading…
Reference in New Issue
Block a user