changeset 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 fa6d97b7f4e8
children 275e2256bb11
files dv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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;