Mercurial > libavcodec.hg
changeset 8738:08f9871b035b libavcodec
No need to compute stype
author | romansh |
---|---|
date | Wed, 04 Feb 2009 16:16:53 +0000 |
parents | eeca2fc122f8 |
children | 037e54d6c9c3 |
files | dv.c |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/dv.c Tue Feb 03 23:09:00 2009 +0000 +++ b/dv.c Wed Feb 04 16:16:53 2009 +0000 @@ -1183,7 +1183,6 @@ * compression scheme (if any). */ int apt = (c->sys->pix_fmt == PIX_FMT_YUV420P ? 0 : 1); - 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 */ @@ -1213,7 +1212,7 @@ 0xf; /* reserved -- always 1 */ buf[3] = (3 << 6) | /* reserved -- always 1 */ (c->sys->dsf << 5) | /* system: 60fields/50fields */ - stype; /* signal type video compression */ + c->sys->video_stype; /* signal type video compression */ buf[4] = 0xff; /* VISC: 0xff -- no information */ break; case dv_video_control: