Commit f579d24b authored by Ben Hutchings's avatar Ben Hutchings Committed by Baptiste Coudurier

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
parent a4fd53c4
...@@ -1184,7 +1184,7 @@ static inline int dv_write_pack(enum dv_pack_type pack_id, DVVideoContext *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); int stype = (c->sys->pix_fmt == PIX_FMT_YUV422P ? 4 : 0);
uint8_t aspect = 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; aspect = 0x02;
buf[0] = (uint8_t)pack_id; 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