X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fvda_h264.c;h=4d2274d649ee9779e7e358c94af47efa10081153;hb=9221e362fd3b4821db5a79cb2d04a12c715235de;hp=8ea81d8d2e41c71171b0edc731e70c9205cc315b;hpb=deedf3e590027e53cf999b11a25fc9be9615b5f2;p=ffmpeg diff --git a/libavcodec/vda_h264.c b/libavcodec/vda_h264.c index 8ea81d8d2e4..4d2274d649e 100644 --- a/libavcodec/vda_h264.c +++ b/libavcodec/vda_h264.c @@ -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;