diff options
author | Stefano Pigozzi <stefano.pigozzi@gmail.com> | 2015-05-10 21:32:59 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2015-05-13 17:39:37 +0200 |
commit | e7c5e17d4fbd7c83fb331bf327e25ebd8e6a8623 (patch) | |
tree | 25b9fa293c02f0e10827a3649ed92ff55f571b36 /libavcodec/vda_h264.c | |
parent | 3b5e5e6a29d62462d0505287042fa4c2b99c4f2b (diff) | |
download | ffmpeg-e7c5e17d4fbd7c83fb331bf327e25ebd8e6a8623.tar.gz |
vda: Make output CVPixelBuffer format configurable
This is useful for client programs to ask for nv12 surfaces instead of the
current default (uyvy), since those are more efficient to decode to.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Diffstat (limited to 'libavcodec/vda_h264.c')
-rw-r--r-- | libavcodec/vda_h264.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/vda_h264.c b/libavcodec/vda_h264.c index 3c0775b15a..0692f60809 100644 --- a/libavcodec/vda_h264.c +++ b/libavcodec/vda_h264.c @@ -380,7 +380,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; |