aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/h264.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-07-16 17:48:47 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-07-16 17:48:47 +0000
commit7a9dba3cd6b8dc300f6b4bbdda9369939820710d (patch)
tree26a38d17cc28f74e6b93bb7ec46f0a00fb5169fb /libavcodec/h264.c
parent9e4cd833477c1efea1851ad98640f4456602b872 (diff)
downloadffmpeg-7a9dba3cd6b8dc300f6b4bbdda9369939820710d.tar.gz
SVQ3 uses the JPEG variant of YUV 4:2:0.
Fixes issue256 Originally committed as revision 14257 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/h264.c')
-rw-r--r--libavcodec/h264.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index a030959e3a..c46b01ebcc 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -2200,6 +2200,10 @@ static av_cold int decode_init(AVCodecContext *avctx){
// 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();