comparison utils.c @ 8611:a637db9f59b1 libavcodec

export gcd function as av_gcd()
author aurel
date Sat, 17 Jan 2009 11:13:33 +0000
parents 555c2ab21d84
children 04423b2f6e0b
comparison
equal deleted inserted replaced
8610:2ca51be7dad8 8611:a637db9f59b1
692 " [PAR %d:%d DAR %d:%d]", 692 " [PAR %d:%d DAR %d:%d]",
693 enc->sample_aspect_ratio.num, enc->sample_aspect_ratio.den, 693 enc->sample_aspect_ratio.num, enc->sample_aspect_ratio.den,
694 display_aspect_ratio.num, display_aspect_ratio.den); 694 display_aspect_ratio.num, display_aspect_ratio.den);
695 } 695 }
696 if(av_log_get_level() >= AV_LOG_DEBUG){ 696 if(av_log_get_level() >= AV_LOG_DEBUG){
697 int g= ff_gcd(enc->time_base.num, enc->time_base.den); 697 int g= av_gcd(enc->time_base.num, enc->time_base.den);
698 snprintf(buf + strlen(buf), buf_size - strlen(buf), 698 snprintf(buf + strlen(buf), buf_size - strlen(buf),
699 ", %d/%d", 699 ", %d/%d",
700 enc->time_base.num/g, enc->time_base.den/g); 700 enc->time_base.num/g, enc->time_base.den/g);
701 } 701 }
702 } 702 }