[FFmpeg-devel] [PATCH 1/2] ffmpeg: re-enable hwaccel_lax_profile_check use hwaccel_flags.

Jun Zhao mypopydev at gmail.com
Thu Sep 21 10:21:33 EEST 2017


-------------- next part --------------
From 742a7fb25d36543a7c2092103001278bd707d9ea Mon Sep 17 00:00:00 2001
From: Jun Zhao <jun.zhao at 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.zhao at 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



More information about the ffmpeg-devel mailing list