static const UID *mxf_get_mpeg2_codec_ul(AVCodecContext *avctx)

{

    int long_gop = avctx->gop_size > 1 || avctx->has_b_frames;



    if (avctx->profile == 4) { // Main

        if (avctx->level == 8) // Main

            return &mxf_mpeg2_codec_uls[0+long_gop];

        else if (avctx->level == 4) // High

            return &mxf_mpeg2_codec_uls[4+long_gop];

        else if (avctx->level == 6) // High 14

            return &mxf_mpeg2_codec_uls[8+long_gop];

    } else if (avctx->profile == 0) { // 422

        if (avctx->level == 5) // Main

            return &mxf_mpeg2_codec_uls[2+long_gop];

        else if (avctx->level == 2) // High

            return &mxf_mpeg2_codec_uls[6+long_gop];

    }

    return NULL;

}

static const UID *mxf_get_mpeg2_codec_ul(AVCodecContext *avctx)

{

    int long_gop = avctx->gop_size > 1 || avctx->has_b_frames;



    if (avctx->profile == 4) { 

        if (avctx->level == 8) 

            return &mxf_mpeg2_codec_uls[0+long_gop];

        else if (avctx->level == 4) 

            return &mxf_mpeg2_codec_uls[4+long_gop];

        else if (avctx->level == 6)  14

            return &mxf_mpeg2_codec_uls[8+long_gop];

    } else if (avctx->profile == 0) { 

        if (avctx->level == 5) 

            return &mxf_mpeg2_codec_uls[2+long_gop];

        else if (avctx->level == 2) 

            return &mxf_mpeg2_codec_uls[6+long_gop];

    }

    return NULL;

}

static const UID *FUNC_0(AVCodecContext *avctx)

{

    int VAR_0 = avctx->gop_size > 1 || avctx->has_b_frames;



    if (avctx->profile == 4) { 

        if (avctx->level == 8) 

            return &mxf_mpeg2_codec_uls[0+VAR_0];

        else if (avctx->level == 4) 

            return &mxf_mpeg2_codec_uls[4+VAR_0];

        else if (avctx->level == 6)  14

            return &mxf_mpeg2_codec_uls[8+VAR_0];

    } else if (avctx->profile == 0) { 

        if (avctx->level == 5) 

            return &mxf_mpeg2_codec_uls[2+VAR_0];

        else if (avctx->level == 2) 

            return &mxf_mpeg2_codec_uls[6+VAR_0];

    }

    return NULL;

}

static const UID *FUNC_0(AVCodecContext *avctx)
{ int VAR_0 = avctx->gop_size > 1 || avctx->has_b_frames; if (avctx->profile == 4) { if (avctx->level == 8)
return &mxf_mpeg2_codec_uls[0+VAR_0]; else if (avctx->level == 4)
return &mxf_mpeg2_codec_uls[4+VAR_0]; else if (avctx->level == 6)  14
return &mxf_mpeg2_codec_uls[8+VAR_0]; } else if (avctx->profile == 0) { if (avctx->level == 5)
return &mxf_mpeg2_codec_uls[2+VAR_0]; else if (avctx->level == 2)
return &mxf_mpeg2_codec_uls[6+VAR_0]; } return NULL; }