[FFmpeg-devel] [PATCH] avcodec/vc1dec: Re-order init to avoid initting hwaccel too early

Andy Furniss adf.lists at gmail.com
Sun Aug 9 11:36:25 CEST 2015

Philip Langdale wrote:
> At least for vdpau, the hwaccel init code tries to check the video
> profile and ensure that there is a matching vdpau profile available.
> If it can't find a match, it will fail to initialise.

I recently noticed this - that it silently falls back to s/w in my test

For me the check (which no players seem to do) is also an issue as I
need H264 5.2 - which doesn't seem to exist in the libvdpau world.

By luck if I blindly hack mesa to say 52 it works - but that's possibly
not exactly safe for all - the AMD code works AFAICT because of defaults
in case statements setting things "to high".

Maybe ffmpeg which seems alone in checking, should allow h264 52 in the
case that vdpau offers 51.

More information about the ffmpeg-devel mailing list