Revision ab1c6dc9

View differences:

ffmpeg.c
2084 2084
static void opt_verbose(const char *arg)
2085 2085
{
2086 2086
    verbose = atoi(arg);
2087
    av_log_set_level(atoi(arg));
2087
    av_log_level = atoi(arg);
2088 2088
}
2089 2089

  
2090 2090
static void opt_frame_rate(const char *arg)
......
3676 3676
#endif
3677 3677

  
3678 3678
    if(avctx_opts->debug)
3679
        av_log_set_level(AV_LOG_DEBUG);
3679
        av_log_level = AV_LOG_DEBUG;
3680 3680
    return 0;
3681 3681
}
3682 3682

  
ffplay.c
2385 2385

  
2386 2386
static void opt_debug(const char *arg)
2387 2387
{
2388
    av_log_set_level(99);
2388
    av_log_level = 99;
2389 2389
    debug = atoi(arg);
2390 2390
}
2391 2391

  
libavcodec/utils.c
1102 1102
            snprintf(buf + strlen(buf), buf_size - strlen(buf),
1103 1103
                     ", %dx%d",
1104 1104
                     enc->width, enc->height);
1105
            if(av_log_get_level() >= AV_LOG_DEBUG){
1105
            if(av_log_level >= AV_LOG_DEBUG){
1106 1106
                int g= ff_gcd(enc->time_base.num, enc->time_base.den);
1107 1107
                snprintf(buf + strlen(buf), buf_size - strlen(buf),
1108 1108
                     ", %d/%d",

Also available in: Unified diff