On 11/10/2016 21:34, Anton Khirnov wrote:
> +    AVHWFramesContext *child_frames_ctx = 
> (AVHWFramesContext*)s->child_frames_ref->data;

You deference data from it

> +    mfxFrameSurface1 *surf = (mfxFrameSurface1*)src->data[3];
> +
> +    AVFrame *dummy;
> +    int ret = 0;
> +
> +    if (!s->child_frames_ref)
> +        return AVERROR(ENOSYS);

You check if it is null here.

I guess the context should be deferenced after the check.
_______________________________________________
libav-devel mailing list
libav-devel@libav.org
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to