Revision cbaf50f8 libavcodec/utils.c

View differences:

libavcodec/utils.c
1129 1129
                     ", %dx%d",
1130 1130
                     enc->width, enc->height);
1131 1131
            if (enc->sample_aspect_ratio.num) {
1132
            av_reduce(&display_aspect_ratio.num, &display_aspect_ratio.den,
1133
                      enc->width*enc->sample_aspect_ratio.num,
1134
                      enc->height*enc->sample_aspect_ratio.den,
1135
                      1024*1024);
1136
            snprintf(buf + strlen(buf), buf_size - strlen(buf),
1137
                     " [PAR %d:%d DAR %d:%d]",
1138
                     enc->sample_aspect_ratio.num, enc->sample_aspect_ratio.den,
1139
                     display_aspect_ratio.num, display_aspect_ratio.den);
1132
                av_reduce(&display_aspect_ratio.num, &display_aspect_ratio.den,
1133
                          enc->width*enc->sample_aspect_ratio.num,
1134
                          enc->height*enc->sample_aspect_ratio.den,
1135
                          1024*1024);
1136
                snprintf(buf + strlen(buf), buf_size - strlen(buf),
1137
                         " [PAR %d:%d DAR %d:%d]",
1138
                         enc->sample_aspect_ratio.num, enc->sample_aspect_ratio.den,
1139
                         display_aspect_ratio.num, display_aspect_ratio.den);
1140 1140
            }
1141 1141
            if(av_log_get_level() >= AV_LOG_DEBUG){
1142 1142
                int g= ff_gcd(enc->time_base.num, enc->time_base.den);

Also available in: Unified diff