# HG changeset patch # User romansh # Date 1065143290 0 # Node ID ef2e313770e0e037fd9376092b4851e6930366ea # Parent 13cbfe47f085517e4e5f37586da6246f21c72304 * fixing bug that prevented resampling the picture and changing pix_fmt at the same time. * aspect ratio should be more reliable for DV now. diff -r 13cbfe47f085 -r ef2e313770e0 dv.c --- a/dv.c Thu Oct 02 22:41:08 2003 +0000 +++ b/dv.c Fri Oct 03 01:08:10 2003 +0000 @@ -660,7 +660,7 @@ c->has_audio = c->has_video = 0; c->start_time = time(NULL); c->aspect = 0; /* 4:3 is the default */ - if (vst->codec.aspect_ratio == 16.0 / 9.0) + if ((int)(vst->codec.aspect_ratio * 10) == 17) /* 16:9 */ c->aspect = 0x07; if (fifo_init(&c->audio_data, 100*AVCODEC_MAX_AUDIO_FRAME_SIZE) < 0)