Mercurial > libavcodec.hg
comparison utils.c @ 4500:18a88f830d1a libavcodec
Directly access av_log_level instead of calling av_log_{set, get}_level()
(which will be removed at the next avutil version increment)
| author | lucabe |
|---|---|
| date | Thu, 08 Feb 2007 18:55:36 +0000 |
| parents | ce643a22f049 |
| children | 6af87c369a8e |
comparison
equal
deleted
inserted
replaced
| 4499:40395b1feedb | 4500:18a88f830d1a |
|---|---|
| 1100 } | 1100 } |
| 1101 if (enc->width) { | 1101 if (enc->width) { |
| 1102 snprintf(buf + strlen(buf), buf_size - strlen(buf), | 1102 snprintf(buf + strlen(buf), buf_size - strlen(buf), |
| 1103 ", %dx%d", | 1103 ", %dx%d", |
| 1104 enc->width, enc->height); | 1104 enc->width, enc->height); |
| 1105 if(av_log_get_level() >= AV_LOG_DEBUG){ | 1105 if(av_log_level >= AV_LOG_DEBUG){ |
| 1106 int g= ff_gcd(enc->time_base.num, enc->time_base.den); | 1106 int g= ff_gcd(enc->time_base.num, enc->time_base.den); |
| 1107 snprintf(buf + strlen(buf), buf_size - strlen(buf), | 1107 snprintf(buf + strlen(buf), buf_size - strlen(buf), |
| 1108 ", %d/%d", | 1108 ", %d/%d", |
| 1109 enc->time_base.num/g, enc->time_base.den/g); | 1109 enc->time_base.num/g, enc->time_base.den/g); |
| 1110 } | 1110 } |
