static int check_timecode(void *log_ctx, AVTimecode *tc)

{

    if (tc->fps <= 0) {

        av_log(log_ctx, AV_LOG_ERROR, "Timecode frame rate must be specified\n");

        return AVERROR(EINVAL);

    }

    if ((tc->flags & AV_TIMECODE_FLAG_DROPFRAME) && tc->fps != 30 && tc->fps != 60) {

        av_log(log_ctx, AV_LOG_ERROR, "Drop frame is only allowed with 30000/1001 or 60000/1001 FPS\n");

        return AVERROR(EINVAL);

    }

    if (check_fps(tc->fps) < 0) {

        av_log(log_ctx, AV_LOG_WARNING, "Using non-standard frame rate %d/%d\n",

               tc->rate.num, tc->rate.den);

    }

    return 0;

}

static int check_timecode(void *log_ctx, AVTimecode *tc)

{

    if (tc->fps <= 0) {

        av_log(log_ctx, AV_LOG_ERROR, "Timecode frame rate must be specified\n");

        return AVERROR(EINVAL);

    }

    if ((tc->flags & AV_TIMECODE_FLAG_DROPFRAME) && tc->fps != 30 && tc->fps != 60) {

        av_log(log_ctx, AV_LOG_ERROR, "Drop frame is only allowed with 30000/1001 or 60000/1001 FPS\n");

        return AVERROR(EINVAL);

    }

    if (check_fps(tc->fps) < 0) {

        av_log(log_ctx, AV_LOG_WARNING, "Using non-standard frame rate %d/%d\n",

               tc->rate.num, tc->rate.den);

    }

    return 0;

}

    if (tc->fps <= 0) {
static int FUNC_0(void *VAR_0, AVTimecode *VAR_1)

{

    if (VAR_1->fps <= 0) {

        av_log(VAR_0, AV_LOG_ERROR, "Timecode frame rate must be specified\n");

        return AVERROR(EINVAL);

    }

    if ((VAR_1->flags & AV_TIMECODE_FLAG_DROPFRAME) && VAR_1->fps != 30 && VAR_1->fps != 60) {

        av_log(VAR_0, AV_LOG_ERROR, "Drop frame is only allowed with 30000/1001 or 60000/1001 FPS\n");

        return AVERROR(EINVAL);

    }

    if (check_fps(VAR_1->fps) < 0) {

        av_log(VAR_0, AV_LOG_WARNING, "Using non-standard frame rate %d/%d\n",

               VAR_1->rate.num, VAR_1->rate.den);

    }

    return 0;

}

static int FUNC_0(void *VAR_0, AVTimecode *VAR_1)
{ if (VAR_1->fps <= 0) { av_log(VAR_0, AV_LOG_ERROR, "Timecode frame rate must be specified\n"); return AVERROR(EINVAL); } if ((VAR_1->flags & AV_TIMECODE_FLAG_DROPFRAME) && VAR_1->fps != 30 && VAR_1->fps != 60) { av_log(VAR_0, AV_LOG_ERROR, "Drop frame is only allowed with 30000/1001 or 60000/1001 FPS\n"); return AVERROR(EINVAL); } if (check_fps(VAR_1->fps) < 0) { av_log(VAR_0, AV_LOG_WARNING, "Using non-standard frame rate %d/%d\n",
VAR_1->rate.num, VAR_1->rate.den); } return 0; }