[FFmpeg-devel] [VDPAU] [PATCH 1/2] lavc/vdpau_hevc: add function to find exact vdp_profile for REXT

Philip Langdale philipl at overt.org
Fri Jun 26 19:41:02 EEST 2020


On Fri, 26 Jun 2020 17:47:32 +0300
RĂ©mi Denis-Courmont <remi at remlab.net> wrote:

> 
> Is this really supposed to be done with string matching in
> libavcodec? That looks rather brittle to me.

It's a fair statement, but, surprisingly, we don't have a profile enum.
The profile calculator parses all the various contributing attributes
and ultimately maps them to these strings.

We would need to extend the profile descriptor to add an enum, which I
think is reasonable, but short of that, there isn't another way.

--phil


More information about the ffmpeg-devel mailing list