summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorUoti Urpala <uau@glyph.nonexistent.invalid>2009-07-07 02:06:48 +0300
committerUoti Urpala <uau@glyph.nonexistent.invalid>2009-07-07 02:07:11 +0300
commit6d908205fbadbdf7ccdc6c5e0eb918f0b43f16e0 (patch)
tree09a6acada909bd5d070ace54209cadeae66d15cf /libmpcodecs
parente306174952d42e1cd6cc5efc50ae6bb0410501bc (diff)
parenteafe5b7517bbf408ae1ffc936a3abe2313c3b334 (diff)
downloadmpv-6d908205fbadbdf7ccdc6c5e0eb918f0b43f16e0.tar.bz2
mpv-6d908205fbadbdf7ccdc6c5e0eb918f0b43f16e0.tar.xz
Merge svn changes up to r29304
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vf_zrmjpeg.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libmpcodecs/vf_zrmjpeg.c b/libmpcodecs/vf_zrmjpeg.c
index 48b954ea80..4e33409585 100644
--- a/libmpcodecs/vf_zrmjpeg.c
+++ b/libmpcodecs/vf_zrmjpeg.c
@@ -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;