static av_cold int decode_init_thread_copy(AVCodecContext *avctx)
{
    HYuvContext *s = avctx->priv_data;
    int i, ret;
    if ((ret = ff_huffyuv_alloc_temp(s)) < 0) {
        ff_huffyuv_common_end(s);
        return ret;
    }
    for (i = 0; i < 8; i++)
        s->vlc[i].table = NULL;
    if (s->version >= 2) {
        if ((ret = read_huffman_tables(s, avctx->extradata + 4,
                                       avctx->extradata_size)) < 0)
            return ret;
    } else {
        if ((ret = read_old_huffman_tables(s)) < 0)
            return ret;
    }
    return 0;
}
static av_cold int decode_init_thread_copy(AVCodecContext *avctx)
{
    HYuvContext *s = avctx->priv_data;
    int i, ret;
    if ((ret = ff_huffyuv_alloc_temp(s)) < 0) {
        ff_huffyuv_common_end(s);
        return ret;
    }
    for (i = 0; i < 8; i++)
        s->vlc[i].table = NULL;
    if (s->version >= 2) {
        if ((ret = read_huffman_tables(s, avctx->extradata + 4,
                                       avctx->extradata_size)) < 0)
            return ret;
    } else {
        if ((ret = read_old_huffman_tables(s)) < 0)
            return ret;
    }
    return 0;
}
static av_cold int FUNC_0(AVCodecContext *avctx)
{
    HYuvContext *s = avctx->priv_data;
    int VAR_0, VAR_1;
    if ((VAR_1 = ff_huffyuv_alloc_temp(s)) < 0) {
        ff_huffyuv_common_end(s);
        return VAR_1;
    }
    for (VAR_0 = 0; VAR_0 < 8; VAR_0++)
        s->vlc[VAR_0].table = NULL;
    if (s->version >= 2) {
        if ((VAR_1 = read_huffman_tables(s, avctx->extradata + 4,
                                       avctx->extradata_size)) < 0)
            return VAR_1;
    } else {
        if ((VAR_1 = read_old_huffman_tables(s)) < 0)
            return VAR_1;
    }
    return 0;
}
static av_cold int FUNC_0(AVCodecContext *avctx)
{ HYuvContext *s = avctx->priv_data; int VAR_0, VAR_1; if ((VAR_1 = ff_huffyuv_alloc_temp(s)) < 0) { ff_huffyuv_common_end(s); return VAR_1; } for (VAR_0 = 0; VAR_0 < 8; VAR_0++) s->vlc[VAR_0].table = NULL; if (s->version >= 2) { if ((VAR_1 = read_huffman_tables(s, avctx->extradata + 4,
avctx->extradata_size)) < 0)
return VAR_1; } else { if ((VAR_1 = read_old_huffman_tables(s)) < 0)
return VAR_1; } return 0; }