diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2009-01-31 22:16:17 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-01-31 22:16:17 +0000 |
commit | f579d24bad9b9bf26a44e699947cb3fe43db6289 (patch) | |
tree | 86949a4fff4f39a543b0129b5813ba8feac758b6 | |
parent | a4fd53c4270161c6c79c5e4edb456f2b3cef3e6b (diff) | |
download | ffmpeg-f579d24bad9b9bf26a44e699947cb3fe43db6289.tar.gz |
assume widescreen when ratio also > 17, patch by Ben Hutchings, ben at decadent dot org dot uk
Originally committed as revision 16907 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/dv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c index 6a4d2142ec..e78c4baa98 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -1184,7 +1184,7 @@ static inline int dv_write_pack(enum dv_pack_type pack_id, DVVideoContext *c, 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; |