diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index a030959e3a4ae69eeaf5a905cefee98d7a9b2ebb..c46b01ebcca29993e15fc1591e59bbb7b32718da 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();