diff mbox series

[FFmpeg-devel] lavc/h265_profile_level: Fix the default profile in ff_h265_guess_level

Message ID 1579071283-8579-1-git-send-email-linjie.fu@intel.com
State New
Headers show
Series [FFmpeg-devel] lavc/h265_profile_level: Fix the default profile in ff_h265_guess_level
Related show

Checks

Context Check Description
andriy/ffmpeg-patchwork pending
andriy/ffmpeg-patchwork success Applied patch
andriy/ffmpeg-patchwork success Configure finished
andriy/ffmpeg-patchwork success Make finished
andriy/ffmpeg-patchwork success Make fate finished

Commit Message

Fu, Linjie Jan. 15, 2020, 6:54 a.m. UTC
Default to use multiplication factors for Main profile.

Introduced since cd3578a8e4e11e0ba021e621367a7974d6de5da0.

Fixed the notation at the same time.

Signed-off-by: Linjie Fu <linjie.fu@intel.com>
---
 libavcodec/h265_profile_level.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Mark Thompson Feb. 1, 2020, 2 p.m. UTC | #1
On 15/01/2020 06:54, Linjie Fu wrote:
> Default to use multiplication factors for Main profile.
> 
> Introduced since cd3578a8e4e11e0ba021e621367a7974d6de5da0.
> 
> Fixed the notation at the same time.
> 
> Signed-off-by: Linjie Fu <linjie.fu@intel.com>
> ---
>  libavcodec/h265_profile_level.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/libavcodec/h265_profile_level.c b/libavcodec/h265_profile_level.c
> index 70db1a5..a5347f6 100644
> --- a/libavcodec/h265_profile_level.c
> +++ b/libavcodec/h265_profile_level.c
> @@ -187,8 +187,8 @@ const H265LevelDescriptor *ff_h265_guess_level(const H265RawProfileTierLevel *pt
>      else
>          profile = NULL;
>      if (!profile) {
> -        // Default to using multiplication factors for Main profile.
> -        profile = &h265_profiles[3];
> +        // Default to use multiplication factors for Main profile.
> +        profile = &h265_profiles[4];
>      }
>  
>      pic_size = width * height;
> 

Oops, yeah.  Applied.

Thanks,

- Mark
diff mbox series

Patch

diff --git a/libavcodec/h265_profile_level.c b/libavcodec/h265_profile_level.c
index 70db1a5..a5347f6 100644
--- a/libavcodec/h265_profile_level.c
+++ b/libavcodec/h265_profile_level.c
@@ -187,8 +187,8 @@  const H265LevelDescriptor *ff_h265_guess_level(const H265RawProfileTierLevel *pt
     else
         profile = NULL;
     if (!profile) {
-        // Default to using multiplication factors for Main profile.
-        profile = &h265_profiles[3];
+        // Default to use multiplication factors for Main profile.
+        profile = &h265_profiles[4];
     }
 
     pic_size = width * height;