[FFmpeg-devel] [PATCH 6/7] avcodec: allow multiple hwaccels for the same codec/pixfmt
wm4
nfxjfg at googlemail.com
Tue Oct 3 19:00:35 EEST 2017
On Tue, 3 Oct 2017 15:58:32 +0200
Timo Rothenpieler <timo at rothenpieler.org> wrote:
> > -static AVHWAccel *find_hwaccel(enum AVCodecID codec_id,
> > +static AVHWAccel *find_hwaccel(AVCodecContext *avctx,
> > enum AVPixelFormat pix_fmt)
> > {
> > AVHWAccel *hwaccel = NULL;
> > + const AVClass *av_class =
> > + (avctx->codec->caps_internal & FF_CODEC_CAP_HWACCEL_REQUIRE_CLASS)
> > + ? avctx->av_class : NULL;
Also this is actually completely broken. It's trivially fixed, but if
anyone actually wants to try the patches, here's an updated set:
https://github.com/wm4/FFmpeg/tree/libav-cuvid
More information about the ffmpeg-devel
mailing list