Fixes ticket 5286. Uses the global -hwaccel_lax_profile_check option (may be misnamed for this purpose, but it has the right spirit). --- Only compile tested (no hardware).
Maybe -hwaccel_lax_profile_check should be renamed to something a bit more general - it was named for the specific VAAPI case, but this is really the same type of issue. (-hwaccel_ignore_capabilities or something like that?) ffmpeg_vdpau.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ffmpeg_vdpau.c b/ffmpeg_vdpau.c index cf2e83e..bf3a0a8 100644 --- a/ffmpeg_vdpau.c +++ b/ffmpeg_vdpau.c @@ -201,7 +201,9 @@ do { if (ret < 0) goto fail; - if (av_vdpau_bind_context(s, device, get_proc_address, 0)) + if (av_vdpau_bind_context(s, device, get_proc_address, + hwaccel_lax_profile_check ? + AV_HWACCEL_FLAG_IGNORE_LEVEL : 0)) goto fail; get_information_string(&vendor); -- 2.8.1 _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel