int avpicture_fill(AVPicture *picture, uint8_t *ptr,

                   enum AVPixelFormat pix_fmt, int width, int height)

{

    int ret;



    if ((ret = av_image_check_size(width, height, 0, NULL)) < 0)

        return ret;



    if ((ret = av_image_fill_linesizes(picture->linesize, pix_fmt, width)) < 0)

        return ret;



    return av_image_fill_pointers(picture->data, pix_fmt,

                                  height, ptr, picture->linesize);

}

int avpicture_fill(AVPicture *picture, uint8_t *ptr,

                   enum AVPixelFormat pix_fmt, int width, int height)

{

    int ret;



    if ((ret = av_image_check_size(width, height, 0, NULL)) < 0)

        return ret;



    if ((ret = av_image_fill_linesizes(picture->linesize, pix_fmt, width)) < 0)

        return ret;



    return av_image_fill_pointers(picture->data, pix_fmt,

                                  height, ptr, picture->linesize);

}

int FUNC_0(AVPicture *VAR_0, uint8_t *VAR_1,

                   enum AVPixelFormat VAR_2, int VAR_3, int VAR_4)

{

    int VAR_5;



    if ((VAR_5 = av_image_check_size(VAR_3, VAR_4, 0, NULL)) < 0)

        return VAR_5;



    if ((VAR_5 = av_image_fill_linesizes(VAR_0->linesize, VAR_2, VAR_3)) < 0)

        return VAR_5;



    return av_image_fill_pointers(VAR_0->data, VAR_2,

                                  VAR_4, VAR_1, VAR_0->linesize);

}

int FUNC_0(AVPicture *VAR_0, uint8_t *VAR_1,
enum AVPixelFormat VAR_2, int VAR_3, int VAR_4)
{ int VAR_5; if ((VAR_5 = av_image_check_size(VAR_3, VAR_4, 0, NULL)) < 0)
return VAR_5; if ((VAR_5 = av_image_fill_linesizes(VAR_0->linesize, VAR_2, VAR_3)) < 0)
return VAR_5; return av_image_fill_pointers(VAR_0->data, VAR_2,
VAR_4, VAR_1, VAR_0->linesize); }