Revision 18d915dd libavformat/asf.c

View differences:

libavformat/asf.c
514 514
            if (!codec->bit_rate)
515 515
                codec->bit_rate = bitrate[i];
516 516
            if (dar[i].num > 0 && dar[i].den > 0)
517
            av_reduce(&codec->sample_aspect_ratio.num,
518
                    &codec->sample_aspect_ratio.den,
519
                    dar[i].num, dar[i].den, INT_MAX);
517
                av_reduce(&codec->sample_aspect_ratio.num,
518
                          &codec->sample_aspect_ratio.den,
519
                          dar[i].num, dar[i].den, INT_MAX);
520 520
//av_log(NULL, AV_LOG_ERROR, "dar %d:%d sar=%d:%d\n", dar[i].num, dar[i].den, codec->sample_aspect_ratio.num, codec->sample_aspect_ratio.den);
521 521
        }
522 522
    }

Also available in: Unified diff