avcodec/mpegvideo_enc: fix frame skipping with intra only codecs
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -2655,7 +2655,9 @@ FF_ENABLE_DEPRECATION_WARNINGS
|
||||
else if (!is_mpeg12 && (s->h263_pred || s->h263_aic))
|
||||
s->mbintra_table[mb_xy]=1;
|
||||
|
||||
if ((s->flags&CODEC_FLAG_PSNR) || !(s->encoding && (s->intra_only || s->pict_type==AV_PICTURE_TYPE_B) && s->avctx->mb_decision != FF_MB_DECISION_RD)) { //FIXME precalc
|
||||
if ( (s->flags&CODEC_FLAG_PSNR)
|
||||
|| s->avctx->frame_skip_threshold || s->avctx->frame_skip_factor
|
||||
|| !(s->encoding && (s->intra_only || s->pict_type==AV_PICTURE_TYPE_B) && s->avctx->mb_decision != FF_MB_DECISION_RD)) { //FIXME precalc
|
||||
uint8_t *dest_y, *dest_cb, *dest_cr;
|
||||
int dct_linesize, dct_offset;
|
||||
op_pixels_func (*op_pix)[4];
|
||||
|
||||
Reference in New Issue
Block a user