From 5b35e70b94b52063ad8b90e602fd10ee12a2786a Mon Sep 17 00:00:00 2001 From: Johns Date: Mon, 8 Apr 2013 16:42:47 +0200 Subject: Fix bug #1302: Unsupported pixel format crash. --- video.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'video.c') diff --git a/video.c b/video.c index 878eba9..6f3806d 100644 --- a/video.c +++ b/video.c @@ -2311,6 +2311,7 @@ static int VaapiFindImageFormat(VaapiDecoder * decoder, // intel: I420 is native format for MPEG-2 decoded surfaces // intel: NV12 is native format for H.264 decoded surfaces case PIX_FMT_YUV420P: + case PIX_FMT_YUVJ420P: // fourcc = VA_FOURCC_YV12; // YVU fourcc = VA_FOURCC('I', '4', '2', '0'); // YUV break; @@ -7583,6 +7584,7 @@ static void VdpauRenderFrame(VdpauDecoder * decoder, // switch (video_ctx->pix_fmt) { case PIX_FMT_YUV420P: + case PIX_FMT_YUVJ420P: // some streams produce this break; case PIX_FMT_YUV422P: case PIX_FMT_YUV444P: -- cgit v1.2.3