On Fri, Jul 3, 2015 at 12:58 AM, Luca Barbato <[email protected]> wrote:
> CC: [email protected]
> Found-By: kropping

wff? this one's miiiiiine

> ---
>  libavcodec/vda_h264.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavcodec/vda_h264.c b/libavcodec/vda_h264.c
> index 0692f60..62ad5e9 100644
> --- a/libavcodec/vda_h264.c
> +++ b/libavcodec/vda_h264.c
> @@ -359,7 +359,7 @@ static int vda_h264_end_frame(AVCodecContext *avctx)
>                                       sizeof(vda->frame),
>                                       release_buffer, NULL,
>                                       AV_BUFFER_FLAG_READONLY);
> -    if (!frame->buf)
> +    if (!frame->buf[0])
>          return AVERROR(ENOMEM);
>
>      frame->data[3] = (uint8_t*)vda->frame;

lgtm

-- 
Vittorio
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to