Commit e320c05f authored by bcoudurier's avatar bcoudurier

assume widescreen when ratio also > 17, patch by Ben Hutchings, ben at decadent dot org dot uk

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@16907 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ae0f0cf6
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment