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

Jun Zhao mypopydev at gmail.com
Fri Sep 29 04:58:47 EEST 2017


-------------- next part --------------
From e2a7cce88d2a47c7e598b59d24258fea8d809c22 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 V2 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