[FFmpeg-devel] [PATCH] vdpau_mpeg4: Do not fail on unknown profile.

wm4 nfxjfg at googlemail.com
Sat Nov 1 13:52:17 CET 2014


On Sat,  1 Nov 2014 13:45:46 +0100
Reimar Döffinger <Reimar.Doeffinger at gmx.de> wrote:

> This is a regression, previous code did not require
> users to set the profile to use VDPAU.

It still doesn't...?

There are basically 3 ffmpeg vdpau hwaccel APIs now.

> In addition, ASP is a superset of SP, so there is not
> even a good reason to require it.
> ---
>  libavcodec/vdpau_mpeg4.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/libavcodec/vdpau_mpeg4.c b/libavcodec/vdpau_mpeg4.c
> index 2a036b6..02ed4d1 100644
> --- a/libavcodec/vdpau_mpeg4.c
> +++ b/libavcodec/vdpau_mpeg4.c
> @@ -119,6 +119,7 @@ static int vdpau_mpeg4_init(AVCodecContext *avctx)
>      case FF_PROFILE_MPEG4_SIMPLE:
>          profile = VDP_DECODER_PROFILE_MPEG4_PART2_SP;
>          break;
> +    case FF_PROFILE_UNKNOWN:
>      case FF_PROFILE_MPEG4_ADVANCED_SIMPLE:
>          profile = VDP_DECODER_PROFILE_MPEG4_PART2_ASP;
>          break;



More information about the ffmpeg-devel mailing list