summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorRoman Shaposhnik <roman@shaposhnik.org>2009-02-04 16:16:53 +0000
committerRoman Shaposhnik <roman@shaposhnik.org>2009-02-04 16:16:53 +0000
commitf52901b305fd8d160e6ff589b5ba30cb9ecba08d (patch)
tree3082338f13515d240defb17d19d1ab590645535a /libavcodec
parent034fcddf3c10578253ad7c7ad73c84ebff282dd4 (diff)
No need to compute stype
Originally committed as revision 16988 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/dv.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libavcodec/dv.c b/libavcodec/dv.c
index cc8d8c0066..4626c67800 100644
--- a/libavcodec/dv.c
+++ b/libavcodec/dv.c
@@ -1183,7 +1183,6 @@ static inline int dv_write_pack(enum dv_pack_type pack_id, DVVideoContext *c,
* 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 @@ static inline int dv_write_pack(enum dv_pack_type pack_id, DVVideoContext *c,
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: