[FFmpeg-devel] [PATCH 14/17] mjpegdec: Add hwaccel hooks
Carl Eugen Hoyos
ceffmpeg at gmail.com
Fri Nov 24 13:17:40 EET 2017
2017-11-24 1:51 GMT+01:00 Mark Thompson <sw at jkqxz.net>:
> Also adds some extra fields to the main context structure
> that may be needed by a hwaccel decoder.
> ---
> The YUVJ formats really mess with this. This patch hacks
> them out so that the hwaccel works, suggestions welcome
> on what to actually do about them.
> + if (s->avctx->pix_fmt == AV_PIX_FMT_YUVJ420P)
> + s->avctx->pix_fmt = AV_PIX_FMT_YUV420P;
> + if (s->avctx->pix_fmt == AV_PIX_FMT_YUVJ422P)
> + s->avctx->pix_fmt = AV_PIX_FMT_YUV422P;
The hardware decoders output mpeg-scaled frames?
Carl Eugen
More information about the ffmpeg-devel
mailing list