Revision a686caf0 libavformat/dv.c

View differences:

libavformat/dv.c
660 660
    c->has_audio = c->has_video = 0;
661 661
    c->start_time = time(NULL);
662 662
    c->aspect = 0; /* 4:3 is the default */
663
    if (vst->codec.aspect_ratio == 16.0 / 9.0)
663
    if ((int)(vst->codec.aspect_ratio * 10) == 17) /* 16:9 */ 
664 664
        c->aspect = 0x07;
665 665

  
666 666
    if (fifo_init(&c->audio_data, 100*AVCODEC_MAX_AUDIO_FRAME_SIZE) < 0)

Also available in: Unified diff