changeset 7289:1595c063d68d libavcodec

SVQ3 uses the JPEG variant of YUV 4:2:0. Fixes issue256
author michael
date Wed, 16 Jul 2008 17:48:47 +0000
parents 3678ec389a27
children 53bb88ba7a67
files h264.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/h264.c	Wed Jul 16 02:10:21 2008 +0000
+++ b/h264.c	Wed Jul 16 17:48:47 2008 +0000
@@ -2200,6 +2200,10 @@
 //    s->decode_mb= ff_h263_decode_mb;
     s->quarter_sample = 1;
     s->low_delay= 1;
+
+    if(avctx->codec_id == CODEC_ID_SVQ3)
+        avctx->pix_fmt= PIX_FMT_YUVJ420P;
+    else
     avctx->pix_fmt= PIX_FMT_YUV420P;
 
     decode_init_vlc();