[FFmpeg-devel] [PATCH 22/29] avcodec/vdpau: remove YUVJ pixel format usage

Paul B Mahol onemda at gmail.com
Sun Dec 10 15:14:29 EET 2017


Signed-off-by: Paul B Mahol <onemda at gmail.com>
---
 libavcodec/vdpau.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c
index 1b2ec989cd..f7d1535fc7 100644
--- a/libavcodec/vdpau.c
+++ b/libavcodec/vdpau.c
@@ -82,19 +82,16 @@ int av_vdpau_get_surface_parameters(AVCodecContext *avctx,
     /* See <vdpau/vdpau.h> for per-type alignment constraints. */
     switch (avctx->sw_pix_fmt) {
     case AV_PIX_FMT_YUV420P:
-    case AV_PIX_FMT_YUVJ420P:
         t = VDP_CHROMA_TYPE_420;
         w = (w + 1) & ~1;
         h = (h + 3) & ~3;
         break;
     case AV_PIX_FMT_YUV422P:
-    case AV_PIX_FMT_YUVJ422P:
         t = VDP_CHROMA_TYPE_422;
         w = (w + 1) & ~1;
         h = (h + 1) & ~1;
         break;
     case AV_PIX_FMT_YUV444P:
-    case AV_PIX_FMT_YUVJ444P:
         t = VDP_CHROMA_TYPE_444;
         h = (h + 1) & ~1;
         break;
-- 
2.11.0



More information about the ffmpeg-devel mailing list