static void find_compressor(char * compressor_name, int len, MOVTrack *track)

{

    AVDictionaryEntry *encoder;

    int xdcam_res =  (track->par->width == 1280 && track->par->height == 720)

                  || (track->par->width == 1440 && track->par->height == 1080)

                  || (track->par->width == 1920 && track->par->height == 1080);



    if (track->mode == MODE_MOV &&

        (encoder = av_dict_get(track->st->metadata, "encoder", NULL, 0))) {

        av_strlcpy(compressor_name, encoder->value, 32);

    } else if (track->par->codec_id == AV_CODEC_ID_MPEG2VIDEO && xdcam_res) {

        int interlaced = track->par->field_order > AV_FIELD_PROGRESSIVE;

        AVStream *st = track->st;

        int rate = av_q2d(find_fps(NULL, st));

        av_strlcatf(compressor_name, len, "XDCAM");

        if (track->par->format == AV_PIX_FMT_YUV422P) {

            av_strlcatf(compressor_name, len, " HD422");

        } else if(track->par->width == 1440) {

            av_strlcatf(compressor_name, len, " HD");

        } else

            av_strlcatf(compressor_name, len, " EX");



        av_strlcatf(compressor_name, len, " %d%c", track->par->height, interlaced ? 'i' : 'p');



        av_strlcatf(compressor_name, len, "%d", rate * (interlaced + 1));

    }

}

static void find_compressor(char * compressor_name, int len, MOVTrack *track)

{

    AVDictionaryEntry *encoder;

    int xdcam_res =  (track->par->width == 1280 && track->par->height == 720)

                  || (track->par->width == 1440 && track->par->height == 1080)

                  || (track->par->width == 1920 && track->par->height == 1080);



    if (track->mode == MODE_MOV &&

        (encoder = av_dict_get(track->st->metadata, "encoder", NULL, 0))) {

        av_strlcpy(compressor_name, encoder->value, 32);

    } else if (track->par->codec_id == AV_CODEC_ID_MPEG2VIDEO && xdcam_res) {

        int interlaced = track->par->field_order > AV_FIELD_PROGRESSIVE;

        AVStream *st = track->st;

        int rate = av_q2d(find_fps(NULL, st));

        av_strlcatf(compressor_name, len, "XDCAM");

        if (track->par->format == AV_PIX_FMT_YUV422P) {

            av_strlcatf(compressor_name, len, " HD422");

        } else if(track->par->width == 1440) {

            av_strlcatf(compressor_name, len, " HD");

        } else

            av_strlcatf(compressor_name, len, " EX");



        av_strlcatf(compressor_name, len, " %d%c", track->par->height, interlaced ? 'i' : 'p');



        av_strlcatf(compressor_name, len, "%d", rate * (interlaced + 1));

    }

}

        int rate = av_q2d(find_fps(NULL, st));
static void FUNC_0(char * VAR_0, int VAR_1, MOVTrack *VAR_2)

{

    AVDictionaryEntry *encoder;

    int VAR_3 =  (VAR_2->par->width == 1280 && VAR_2->par->height == 720)

                  || (VAR_2->par->width == 1440 && VAR_2->par->height == 1080)

                  || (VAR_2->par->width == 1920 && VAR_2->par->height == 1080);



    if (VAR_2->mode == MODE_MOV &&

        (encoder = av_dict_get(VAR_2->st->metadata, "encoder", NULL, 0))) {

        av_strlcpy(VAR_0, encoder->value, 32);

    } else if (VAR_2->par->codec_id == AV_CODEC_ID_MPEG2VIDEO && VAR_3) {

        int VAR_4 = VAR_2->par->field_order > AV_FIELD_PROGRESSIVE;

        AVStream *st = VAR_2->st;

        int VAR_5 = av_q2d(find_fps(NULL, st));

        av_strlcatf(VAR_0, VAR_1, "XDCAM");

        if (VAR_2->par->format == AV_PIX_FMT_YUV422P) {

            av_strlcatf(VAR_0, VAR_1, " HD422");

        } else if(VAR_2->par->width == 1440) {

            av_strlcatf(VAR_0, VAR_1, " HD");

        } else

            av_strlcatf(VAR_0, VAR_1, " EX");



        av_strlcatf(VAR_0, VAR_1, " %d%c", VAR_2->par->height, VAR_4 ? 'i' : 'p');



        av_strlcatf(VAR_0, VAR_1, "%d", VAR_5 * (VAR_4 + 1));

    }

}

static void FUNC_0(char * VAR_0, int VAR_1, MOVTrack *VAR_2)
{ AVDictionaryEntry *encoder; int VAR_3 =  (VAR_2->par->width == 1280 && VAR_2->par->height == 720)
|| (VAR_2->par->width == 1440 && VAR_2->par->height == 1080)
|| (VAR_2->par->width == 1920 && VAR_2->par->height == 1080); if (VAR_2->mode == MODE_MOV &&
(encoder = av_dict_get(VAR_2->st->metadata, "encoder", NULL, 0))) { av_strlcpy(VAR_0, encoder->value, 32); } else if (VAR_2->par->codec_id == AV_CODEC_ID_MPEG2VIDEO && VAR_3) { int VAR_4 = VAR_2->par->field_order > AV_FIELD_PROGRESSIVE; AVStream *st = VAR_2->st; int VAR_5 = av_q2d(find_fps(NULL, st)); av_strlcatf(VAR_0, VAR_1, "XDCAM"); if (VAR_2->par->format == AV_PIX_FMT_YUV422P) { av_strlcatf(VAR_0, VAR_1, " HD422"); } else if(VAR_2->par->width == 1440) { av_strlcatf(VAR_0, VAR_1, " HD"); } else av_strlcatf(VAR_0, VAR_1, " EX"); av_strlcatf(VAR_0, VAR_1, " %d%c", VAR_2->par->height, VAR_4 ? 'i' : 'p'); av_strlcatf(VAR_0, VAR_1, "%d", VAR_5 * (VAR_4 + 1)); } }