From 742a7fb25d36543a7c2092103001278bd707d9ea Mon Sep 17 00:00:00 2001
From: Jun Zhao <jun.z...@intel.com>
Date: Thu, 21 Sep 2017 02:41:29 -0400
Subject: [PATCH 1/2] ffmpeg: re-enable hwaccel_lax_profile_check use
hwaccel_flags.
re-enable hwaccel_lax_profile_check option use hwaccel_flags.
Signed-off-by: Jun Zhao <jun.z...@intel.com>
---
ffmpeg.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/ffmpeg.c b/ffmpeg.c
index 1d248bc269..4f2b9d69d9 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -2859,6 +2859,9 @@ static enum AVPixelFormat get_format(AVCodecContext *s,
const enum AVPixelFormat
ist->active_hwaccel_id = hwaccel->id;
ist->hwaccel_pix_fmt = *p;
+
+ if (hwaccel_lax_profile_check)
+ s->hwaccel_flags |= AV_HWACCEL_FLAG_ALLOW_PROFILE_MISMATCH;
break;
}
--
2.11.0
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel