From 21e1913175f89e1a0be2ea5eb1167ecc943985d7 Mon Sep 17 00:00:00 2001 From: Jeff Muizelaar Date: Wed, 22 Sep 2004 05:04:18 +0000 Subject: * simplification patch by Jeffrey Ryan Muizelaar Originally committed as revision 3491 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/dv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'libavcodec/dv.c') diff --git a/libavcodec/dv.c b/libavcodec/dv.c index 8e359e361b..ae50315292 100644 --- a/libavcodec/dv.c +++ b/libavcodec/dv.c @@ -394,8 +394,7 @@ static inline void dv_decode_video_segment(DVVideoContext *s, init_get_bits(&gb, buf_ptr, last_index); /* get the dc */ - dc = get_bits(&gb, 9); - dc = (dc << (32 - 9)) >> (32 - 9); + dc = get_sbits(&gb, 9); dct_mode = get_bits1(&gb); mb->dct_mode = dct_mode; mb->scan_table = s->dv_zigzag[dct_mode]; -- cgit v1.2.3