changeset 273:ef2e313770e0 libavformat

* fixing bug that prevented resampling the picture and changing pix_fmt at the same time. * aspect ratio should be more reliable for DV now.
author romansh
date Fri, 03 Oct 2003 01:08:10 +0000
parents 13cbfe47f085
children 9fa2ec3b9982
files dv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)