mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 11:19:55 +00:00
vdpau_mpeg4: Do not fail on unknown profile.
This is a regression, previous code did not require users to set the profile to use VDPAU. In addition, ASP is a superset of SP, so there is not even a good reason to require it. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
This commit is contained in:
parent
4fd7067987
commit
a26d0ffa18
@ -119,6 +119,9 @@ static int vdpau_mpeg4_init(AVCodecContext *avctx)
|
||||
case FF_PROFILE_MPEG4_SIMPLE:
|
||||
profile = VDP_DECODER_PROFILE_MPEG4_PART2_SP;
|
||||
break;
|
||||
// As any ASP decoder must be able to decode SP, this
|
||||
// should be a safe fallback if profile is unknown/unspecified.
|
||||
case FF_PROFILE_UNKNOWN:
|
||||
case FF_PROFILE_MPEG4_ADVANCED_SIMPLE:
|
||||
profile = VDP_DECODER_PROFILE_MPEG4_PART2_ASP;
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user