]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/vda_h264.c
Merge commit 'd13b124eaf452b267480074b2e6946538ed03a6e'
[ffmpeg] / libavcodec / vda_h264.c
index 8ea81d8d2e41c71171b0edc731e70c9205cc315b..4d2274d649ee9779e7e358c94af47efa10081153 100644 (file)
@@ -430,7 +430,7 @@ int ff_vda_default_init(AVCodecContext *avctx)
     CFMutableDictionaryRef buffer_attributes;
     CFMutableDictionaryRef io_surface_properties;
     CFNumberRef cv_pix_fmt;
-    int32_t fmt = 'avc1', pix_fmt = kCVPixelFormatType_422YpCbCr8;
+    int32_t fmt = 'avc1', pix_fmt = vda_ctx->cv_pix_fmt_type;
 
     // kCVPixelFormatType_420YpCbCr8Planar;