static void decode_profile_tier_level(HEVCContext *s, PTLCommon *ptl)

{

    int i;

    HEVCLocalContext *lc = s->HEVClc;

    GetBitContext *gb = &lc->gb;



    ptl->profile_space = get_bits(gb, 2);

    ptl->tier_flag     = get_bits1(gb);

    ptl->profile_idc   = get_bits(gb, 5);

    if (ptl->profile_idc == FF_PROFILE_HEVC_MAIN)

        av_log(s->avctx, AV_LOG_DEBUG, "Main profile bitstream\n");

    else if (ptl->profile_idc == FF_PROFILE_HEVC_MAIN_10)

        av_log(s->avctx, AV_LOG_DEBUG, "Main 10 profile bitstream\n");

    else if (ptl->profile_idc == FF_PROFILE_HEVC_MAIN_STILL_PICTURE)

        av_log(s->avctx, AV_LOG_DEBUG, "Main Still Picture profile bitstream\n");

    else if (ptl->profile_idc == FF_PROFILE_HEVC_REXT)

        av_log(s->avctx, AV_LOG_DEBUG, "Range Extension profile bitstream\n");

    else

        av_log(s->avctx, AV_LOG_WARNING, "Unknown HEVC profile: %d\n", ptl->profile_idc);



    for (i = 0; i < 32; i++)

        ptl->profile_compatibility_flag[i] = get_bits1(gb);

    ptl->progressive_source_flag    = get_bits1(gb);

    ptl->interlaced_source_flag     = get_bits1(gb);

    ptl->non_packed_constraint_flag = get_bits1(gb);

    ptl->frame_only_constraint_flag = get_bits1(gb);



    skip_bits(gb, 16); // XXX_reserved_zero_44bits[0..15]

    skip_bits(gb, 16); // XXX_reserved_zero_44bits[16..31]

    skip_bits(gb, 12); // XXX_reserved_zero_44bits[32..43]

}

static void decode_profile_tier_level(HEVCContext *s, PTLCommon *ptl)

{

    int i;

    HEVCLocalContext *lc = s->HEVClc;

    GetBitContext *gb = &lc->gb;



    ptl->profile_space = get_bits(gb, 2);

    ptl->tier_flag     = get_bits1(gb);

    ptl->profile_idc   = get_bits(gb, 5);

    if (ptl->profile_idc == FF_PROFILE_HEVC_MAIN)

        av_log(s->avctx, AV_LOG_DEBUG, "Main profile bitstream\n");

    else if (ptl->profile_idc == FF_PROFILE_HEVC_MAIN_10)

        av_log(s->avctx, AV_LOG_DEBUG, "Main 10 profile bitstream\n");

    else if (ptl->profile_idc == FF_PROFILE_HEVC_MAIN_STILL_PICTURE)

        av_log(s->avctx, AV_LOG_DEBUG, "Main Still Picture profile bitstream\n");

    else if (ptl->profile_idc == FF_PROFILE_HEVC_REXT)

        av_log(s->avctx, AV_LOG_DEBUG, "Range Extension profile bitstream\n");

    else

        av_log(s->avctx, AV_LOG_WARNING, "Unknown HEVC profile: %d\n", ptl->profile_idc);



    for (i = 0; i < 32; i++)

        ptl->profile_compatibility_flag[i] = get_bits1(gb);

    ptl->progressive_source_flag    = get_bits1(gb);

    ptl->interlaced_source_flag     = get_bits1(gb);

    ptl->non_packed_constraint_flag = get_bits1(gb);

    ptl->frame_only_constraint_flag = get_bits1(gb);



    skip_bits(gb, 16); 

    skip_bits(gb, 16); 

    skip_bits(gb, 12); 

}

static void decode_profile_tier_level(HEVCContext *s, PTLCommon *ptl)
static void FUNC_0(HEVCContext *VAR_0, PTLCommon *VAR_1)

{

    int VAR_2;

    HEVCLocalContext *lc = VAR_0->HEVClc;

    GetBitContext *gb = &lc->gb;



    VAR_1->profile_space = get_bits(gb, 2);

    VAR_1->tier_flag     = get_bits1(gb);

    VAR_1->profile_idc   = get_bits(gb, 5);

    if (VAR_1->profile_idc == FF_PROFILE_HEVC_MAIN)

        av_log(VAR_0->avctx, AV_LOG_DEBUG, "Main profile bitstream\n");

    else if (VAR_1->profile_idc == FF_PROFILE_HEVC_MAIN_10)

        av_log(VAR_0->avctx, AV_LOG_DEBUG, "Main 10 profile bitstream\n");

    else if (VAR_1->profile_idc == FF_PROFILE_HEVC_MAIN_STILL_PICTURE)

        av_log(VAR_0->avctx, AV_LOG_DEBUG, "Main Still Picture profile bitstream\n");

    else if (VAR_1->profile_idc == FF_PROFILE_HEVC_REXT)

        av_log(VAR_0->avctx, AV_LOG_DEBUG, "Range Extension profile bitstream\n");

    else

        av_log(VAR_0->avctx, AV_LOG_WARNING, "Unknown HEVC profile: %d\n", VAR_1->profile_idc);



    for (VAR_2 = 0; VAR_2 < 32; VAR_2++)

        VAR_1->profile_compatibility_flag[VAR_2] = get_bits1(gb);

    VAR_1->progressive_source_flag    = get_bits1(gb);

    VAR_1->interlaced_source_flag     = get_bits1(gb);

    VAR_1->non_packed_constraint_flag = get_bits1(gb);

    VAR_1->frame_only_constraint_flag = get_bits1(gb);



    skip_bits(gb, 16); 

    skip_bits(gb, 16); 

    skip_bits(gb, 12); 

}

static void FUNC_0(HEVCContext *VAR_0, PTLCommon *VAR_1)
{ int VAR_2; HEVCLocalContext *lc = VAR_0->HEVClc; GetBitContext *gb = &lc->gb; VAR_1->profile_space = get_bits(gb, 2); VAR_1->tier_flag     = get_bits1(gb); VAR_1->profile_idc   = get_bits(gb, 5); if (VAR_1->profile_idc == FF_PROFILE_HEVC_MAIN)
av_log(VAR_0->avctx, AV_LOG_DEBUG, "Main profile bitstream\n"); else if (VAR_1->profile_idc == FF_PROFILE_HEVC_MAIN_10)
av_log(VAR_0->avctx, AV_LOG_DEBUG, "Main 10 profile bitstream\n"); else if (VAR_1->profile_idc == FF_PROFILE_HEVC_MAIN_STILL_PICTURE)
av_log(VAR_0->avctx, AV_LOG_DEBUG, "Main Still Picture profile bitstream\n"); else if (VAR_1->profile_idc == FF_PROFILE_HEVC_REXT)
av_log(VAR_0->avctx, AV_LOG_DEBUG, "Range Extension profile bitstream\n"); else
av_log(VAR_0->avctx, AV_LOG_WARNING, "Unknown HEVC profile: %d\n", VAR_1->profile_idc); for (VAR_2 = 0; VAR_2 < 32; VAR_2++) VAR_1->profile_compatibility_flag[VAR_2] = get_bits1(gb); VAR_1->progressive_source_flag    = get_bits1(gb); VAR_1->interlaced_source_flag     = get_bits1(gb); VAR_1->non_packed_constraint_flag = get_bits1(gb); VAR_1->frame_only_constraint_flag = get_bits1(gb); skip_bits(gb, 16); skip_bits(gb, 16); skip_bits(gb, 12); }