summaryrefslogtreecommitdiff
path: root/video.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2013-04-08 16:42:47 +0200
committerJohns <johns98@gmx.net>2013-04-08 16:42:47 +0200
commit5b35e70b94b52063ad8b90e602fd10ee12a2786a (patch)
tree1e2cd172d2d570d10fe2b962a03c9e47e19c6b8a /video.c
parent857546a3a50344cdf787da346061d3bb5e8b25b4 (diff)
downloadvdr-plugin-softhddevice-5b35e70b94b52063ad8b90e602fd10ee12a2786a.tar.gz
vdr-plugin-softhddevice-5b35e70b94b52063ad8b90e602fd10ee12a2786a.tar.bz2
Fix bug #1302: Unsupported pixel format crash.
Diffstat (limited to 'video.c')
-rw-r--r--video.c2
1 files changed, 2 insertions, 0 deletions
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: