1
mirror of https://github.com/mpv-player/mpv synced 2024-10-18 10:25:02 +02: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:
rik 2009-05-09 21:37:07 +00:00
parent b4f1c69f87
commit 1939b7e3f3

View File

@ -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;