Mercurial > libavcodec.hg
comparison utils.c @ 6012:085be73cb51c libavcodec
use av_log_get/set_level()
| author | mru |
|---|---|
| date | Wed, 12 Dec 2007 21:48:50 +0000 |
| parents | b1fe945d73f9 |
| children | 2f9c17454842 |
comparison
equal
deleted
inserted
replaced
| 6011:b1fe945d73f9 | 6012:085be73cb51c |
|---|---|
| 1137 1024*1024); | 1137 1024*1024); |
| 1138 snprintf(buf + strlen(buf), buf_size - strlen(buf), | 1138 snprintf(buf + strlen(buf), buf_size - strlen(buf), |
| 1139 " [PAR %d:%d DAR %d:%d]", | 1139 " [PAR %d:%d DAR %d:%d]", |
| 1140 enc->sample_aspect_ratio.num, enc->sample_aspect_ratio.den, | 1140 enc->sample_aspect_ratio.num, enc->sample_aspect_ratio.den, |
| 1141 display_aspect_ratio.num, display_aspect_ratio.den); | 1141 display_aspect_ratio.num, display_aspect_ratio.den); |
| 1142 if(av_log_level >= AV_LOG_DEBUG){ | 1142 if(av_log_get_level() >= AV_LOG_DEBUG){ |
| 1143 int g= ff_gcd(enc->time_base.num, enc->time_base.den); | 1143 int g= ff_gcd(enc->time_base.num, enc->time_base.den); |
| 1144 snprintf(buf + strlen(buf), buf_size - strlen(buf), | 1144 snprintf(buf + strlen(buf), buf_size - strlen(buf), |
| 1145 ", %d/%d", | 1145 ", %d/%d", |
| 1146 enc->time_base.num/g, enc->time_base.den/g); | 1146 enc->time_base.num/g, enc->time_base.den/g); |
| 1147 } | 1147 } |
