diff --git a/libavcodec/h264.c b/libavcodec/h264.c
index e854ded..f21d35f 100644
--- a/libavcodec/h264.c
+++ b/libavcodec/h264.c
@@ -1725,6 +1725,7 @@ int ff_h264_frame_start(H264Context *h)
     if ((ret = alloc_picture(h, pic)) < 0)
         return ret;
     if(!h->sync && !h->avctx->hwaccel &&
+       strcmp(h->avctx->codec->name, "h264_vda") &&
        !(h->avctx->codec->capabilities & CODEC_CAP_HWACCEL_VDPAU))
         avpriv_color_frame(&pic->f, c);
 
