[FFmpeg-devel] [PATCH] qsvenc.c: use query function to catch all kind of setting issues

Michael Niedermayer michaelni at gmx.at
Wed Sep 30 22:47:20 CEST 2015


On Wed, Sep 30, 2015 at 04:19:15PM +0200, Sven Dueking wrote:
> From 86ddf1095bfd557324f6eeb24d94cbd0a6818c10 Mon Sep 17 00:00:00 2001
> From: Sven Dueking <sven at nablet.com>
> Date: Wed, 30 Sep 2015 16:06:02 +0200
> Subject: [FFmpeg-devel] [PATCH] qsvenc.c: use query function to catch all
> kind of setting issues
> 
> ---
>  libavcodec/qsvenc.c | 8 ++++++++
>  1 file changed, 8 insertions(+)
> 
> diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c
> index 1013fe1..55140e1 100644
> --- a/libavcodec/qsvenc.c
> +++ b/libavcodec/qsvenc.c
> @@ -264,6 +264,14 @@ int ff_qsv_enc_init(AVCodecContext *avctx,
> QSVEncContext *q)
>      if (ret < 0)
>          return ret;
>  
> +    ret = MFXVideoENCODE_Query(q->session, &q->param,&q->param);
> +    if (MFX_WRN_PARTIAL_ACCELERATION==ret) {
> +        av_log(avctx, AV_LOG_WARNING, "Encoder will work with partial HW
> acceleration\n");
> +    } else if (ret < 0) {

Applying: qsvenc.c: use query function to catch all kind of setting issues
fatal: corrupt patch at line 10

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

When the tyrant has disposed of foreign enemies by conquest or treaty, and
there is nothing more to fear from them, then he is always stirring up
some war or other, in order that the people may require a leader. -- Plato
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150930/6ffd85e1/attachment.sig>


More information about the ffmpeg-devel mailing list