mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
snowenc: set chroma subsample factors correctly for non 420
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
81416c2f64
commit
b4b7471ec4
@ -230,9 +230,7 @@ static av_cold int encode_init(AVCodecContext *avctx)
|
|||||||
av_log(avctx, AV_LOG_ERROR, "pixel format not supported\n");
|
av_log(avctx, AV_LOG_ERROR, "pixel format not supported\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
// avcodec_get_chroma_sub_sample(avctx->pix_fmt, &s->chroma_h_shift, &s->chroma_v_shift);
|
avcodec_get_chroma_sub_sample(avctx->pix_fmt, &s->chroma_h_shift, &s->chroma_v_shift);
|
||||||
s->chroma_h_shift= 1;
|
|
||||||
s->chroma_v_shift= 1;
|
|
||||||
|
|
||||||
ff_set_cmp(&s->dsp, s->dsp.me_cmp, s->avctx->me_cmp);
|
ff_set_cmp(&s->dsp, s->dsp.me_cmp, s->avctx->me_cmp);
|
||||||
ff_set_cmp(&s->dsp, s->dsp.me_sub_cmp, s->avctx->me_sub_cmp);
|
ff_set_cmp(&s->dsp, s->dsp.me_sub_cmp, s->avctx->me_sub_cmp);
|
||||||
|
Loading…
Reference in New Issue
Block a user