mirror of
https://github.com/mpv-player/mpv
synced 2025-02-27 09:23:05 +01:00
MPV_common_init balks if s->avctx->pix_fmt == PIX_FMT_NONE, so we set it correctly
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29286 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b4f1c69f87
commit
1939b7e3f3
@ -505,6 +505,8 @@ static jpeg_enc_t *jpeg_enc_init(int w, int h, int y_rsize,
|
||||
// Which DCT method to use. AUTO will select the fastest one
|
||||
j->s->avctx->dct_algo = FF_DCT_AUTO;
|
||||
j->s->intra_quant_bias= 1<<(QUANT_BIAS_SHIFT-1); //(a + x/2)/x
|
||||
// indicate we 'decode' to jpeg 4:2:2
|
||||
j->s->avctx->pix_fmt = PIX_FMT_YUVJ422P;
|
||||
|
||||
j->s->avctx->thread_count = 1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user