summaryrefslogtreecommitdiff
path: root/libavcodec/dv.c
diff options
context:
space:
mode:
authorJeff Muizelaar <jrmuizel@gmail.com>2004-09-22 05:04:18 +0000
committerRoman Shaposhnik <roman@shaposhnik.org>2004-09-22 05:04:18 +0000
commit21e1913175f89e1a0be2ea5eb1167ecc943985d7 (patch)
tree040a5ff11d78d5e4c8284c3cf5721905cd0c3618 /libavcodec/dv.c
parent457c649ac41db4765491e98efb877bfd1dd3d118 (diff)
* simplification patch by Jeffrey Ryan Muizelaar
Originally committed as revision 3491 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/dv.c')
-rw-r--r--libavcodec/dv.c3
1 files changed, 1 insertions, 2 deletions
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];