[FFmpeg-cvslog] r16907 - trunk/libavcodec/dv.c
bcoudurier
subversion
Sat Jan 31 23:16:17 CET 2009
Author: bcoudurier
Date: Sat Jan 31 23:16:17 2009
New Revision: 16907
Log:
assume widescreen when ratio also > 17, patch by Ben Hutchings, ben at decadent dot org dot uk
Modified:
trunk/libavcodec/dv.c
Modified: trunk/libavcodec/dv.c
==============================================================================
--- trunk/libavcodec/dv.c Sat Jan 31 23:10:23 2009 (r16906)
+++ trunk/libavcodec/dv.c Sat Jan 31 23:16:17 2009 (r16907)
@@ -1184,7 +1184,7 @@ static inline int dv_write_pack(enum dv_
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;
More information about the ffmpeg-cvslog
mailing list