Mercurial > libavformat.hg
changeset 460:6624afe8bf65 libavformat
* IEC DV seems to accept SMPTE way of tagging 16:9 too.
author | romansh |
---|---|
date | Tue, 18 May 2004 02:33:27 +0000 |
parents | ce1a3e82328b |
children | 63540e5504f7 |
files | dv.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/dv.c Thu May 13 14:54:57 2004 +0000 +++ b/dv.c Tue May 18 02:33:27 2004 +0000 @@ -582,9 +582,11 @@ avctx->height = sys->height; avctx->pix_fmt = sys->pix_fmt; + /* finding out SAR is a little bit messy */ vsc_pack = dv_extract_pack(frame, dv_video_control); apt = frame[4] & 0x07; - is16_9 = (vsc_pack && (vsc_pack[2] & 0x07) == (apt?0x02:0x07)); + is16_9 = (vsc_pack && ((vsc_pack[2] & 0x07) == 0x02 || + (!apt && (vsc_pack[2] & 0x07) == 0x07))); avctx->sample_aspect_ratio = sys->sar[is16_9]; size = sys->frame_size;