On Thu, Oct 15, 2015 at 1:31 PM, Hendrik Leppkes <[email protected]> wrote:
> Some decoders specifically test if data[0] is set to check if a frame is
> valid. This allows these checks to pass and decoding to continue.
> ---
>  avconv_dxva2.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/avconv_dxva2.c b/avconv_dxva2.c
> index 8ca08c3..0c5d572 100644
> --- a/avconv_dxva2.c
> +++ b/avconv_dxva2.c
> @@ -243,6 +243,7 @@ static int dxva2_get_buffer(AVCodecContext *s, AVFrame 
> *frame, int flags)
>      ctx->surface_infos[i].used = 1;
>      ctx->surface_infos[i].age  = ctx->surface_age++;
>
> +    frame->data[0] =
>      frame->data[3] = (uint8_t *)surface;
>
>      return 0;
> --
> 2.5.3.windows.1
>

Apparently data[0] being NULL is considered normal for hwaccels, so
disregard this patch. Any usage in a check should be fixed instead.
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to