diff dv.c @ 8714:ba1e52769fc5 libavcodec

assume widescreen when ratio also > 17, patch by Ben Hutchings, ben at decadent dot org dot uk
author bcoudurier
date Sat, 31 Jan 2009 22:16:17 +0000
parents eaae57fe72b2
children 6056e34b9504
line wrap: on
line diff
--- a/dv.c	Sat Jan 31 22:10:23 2009 +0000
+++ b/dv.c	Sat Jan 31 22:16:17 2009 +0000
@@ -1184,7 +1184,7 @@
     int stype = (c->sys->pix_fmt == PIX_FMT_YUV422P ? 4 : 0);
 
     uint8_t aspect = 0;
-    if ((int)(av_q2d(c->avctx->sample_aspect_ratio) * c->avctx->width / c->avctx->height * 10) == 17) /* 16:9 */
+    if ((int)(av_q2d(c->avctx->sample_aspect_ratio) * c->avctx->width / c->avctx->height * 10) >= 17) /* 16:9 */
         aspect = 0x02;
 
     buf[0] = (uint8_t)pack_id;