[1/2] lavc/qsvenc: fix the typo of FrameRateExtD

Message ID 1521108132-19466-1-git-send-email-zhong.li@intel.com
State Committed
Commit 3d6e76b953afd36e23ef8532b81aea58a6338931
Headers show
Series
  • [1/2] lavc/qsvenc: fix the typo of FrameRateExtD
Related show

Commit Message

Li, Zhong March 15, 2018, 10:02 a.m.
Signed-off-by: Zhong Li <zhong.li@intel.com>
---
 libavcodec/qsvenc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Luca Barbato March 15, 2018, 11:13 a.m. | #1
On 15/03/2018 11:02, Zhong Li wrote:
> Signed-off-by: Zhong Li <zhong.li@intel.com>
> ---
>   libavcodec/qsvenc.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
> index d4dd4a3..baa2c630 100644
> --- a/libavcodec/qsvenc.c
> +++ b/libavcodec/qsvenc.c
> @@ -374,7 +374,7 @@ static int check_enc_param(AVCodecContext *avctx, QSVEncContext *q)
>               av_log(avctx, AV_LOG_ERROR, "Selected ratecontrol mode is unsupported\n");
>           if (UNMATCH(LowPower))
>                 av_log(avctx, AV_LOG_ERROR, "Low power mode is unsupported\n");
> -        if (UNMATCH(FrameInfo.FrameRateExtN) || UNMATCH(FrameInfo.FrameRateExtN))
> +        if (UNMATCH(FrameInfo.FrameRateExtN) || UNMATCH(FrameInfo.FrameRateExtD))
>                 av_log(avctx, AV_LOG_ERROR, "Current frame rate is unsupported\n");
>           if (UNMATCH(FrameInfo.PicStruct))
>                 av_log(avctx, AV_LOG_ERROR, "Current picture structure is unsupported\n");
> 

Ok.

Patch

diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
index d4dd4a3..baa2c630 100644
--- a/libavcodec/qsvenc.c
+++ b/libavcodec/qsvenc.c
@@ -374,7 +374,7 @@  static int check_enc_param(AVCodecContext *avctx, QSVEncContext *q)
             av_log(avctx, AV_LOG_ERROR, "Selected ratecontrol mode is unsupported\n");
         if (UNMATCH(LowPower))
               av_log(avctx, AV_LOG_ERROR, "Low power mode is unsupported\n");
-        if (UNMATCH(FrameInfo.FrameRateExtN) || UNMATCH(FrameInfo.FrameRateExtN))
+        if (UNMATCH(FrameInfo.FrameRateExtN) || UNMATCH(FrameInfo.FrameRateExtD))
               av_log(avctx, AV_LOG_ERROR, "Current frame rate is unsupported\n");
         if (UNMATCH(FrameInfo.PicStruct))
               av_log(avctx, AV_LOG_ERROR, "Current picture structure is unsupported\n");