Revision c6dafae9

View differences:

ffmpeg.c
128 128
static int video_codec_tag = 0;
129 129
static int same_quality = 0;
130 130
static int do_deinterlace = 0;
131
static int workaround_bugs = FF_BUG_AUTODETECT;
132 131
static int packet_size = 0;
133 132
static int error_rate = 0;
134 133
static int strict = 0;
......
2103 2102
    video_rc_override_string = arg;
2104 2103
}
2105 2104

  
2106

  
2107
static void opt_workaround_bugs(const char *arg)
2108
{
2109
    workaround_bugs = atoi(arg);
2110
}
2111

  
2112 2105
static void opt_me_threshold(const char *arg)
2113 2106
{
2114 2107
    me_threshold = atoi(arg);
......
2731 2724
            frame_pix_fmt = enc->pix_fmt;
2732 2725
            rfps      = ic->streams[i]->r_frame_rate.num;
2733 2726
            rfps_base = ic->streams[i]->r_frame_rate.den;
2734
            enc->workaround_bugs = workaround_bugs;
2735 2727
            if(enc->lowres) enc->flags |= CODEC_FLAG_EMU_EDGE;
2736 2728
            if(me_threshold)
2737 2729
                enc->debug |= FF_DEBUG_MV;
......
2928 2920
        video_enc->mb_lmax = video_mb_lmax;
2929 2921
        video_enc->max_qdiff = video_qdiff;
2930 2922
        video_enc->rc_eq = video_rc_eq;
2931
        video_enc->workaround_bugs = workaround_bugs;
2932 2923
        video_enc->thread_count = thread_count;
2933 2924
        p= video_rc_override_string;
2934 2925
        for(i=0; p; i++){
......
3868 3859
      "method" },
3869 3860
    { "me_threshold", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_me_threshold}, "motion estimaton threshold",  "" },
3870 3861
    { "mb_threshold", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_mb_threshold}, "macroblock threshold",  "" },
3871
    { "bug", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_workaround_bugs}, "workaround not auto detected encoder bugs", "param" },
3872 3862
    { "ps", HAS_ARG | OPT_EXPERT, {(void*)opt_packet_size}, "set packet size in bits", "size" },
3873 3863
    { "error", HAS_ARG | OPT_EXPERT, {(void*)opt_error_rate}, "error rate", "rate" },
3874 3864
    { "strict", HAS_ARG | OPT_EXPERT | OPT_VIDEO, {(void*)opt_strict}, "how strictly to follow the standards", "strictness" },

Also available in: Unified diff