* simplification patch by Jeffrey Ryan Muizelaar
authorJeff Muizelaar <jrmuizel@gmail.com>
Wed, 22 Sep 2004 05:04:18 +0000 (05:04 +0000)
committerRoman Shaposhnik <roman@shaposhnik.org>
Wed, 22 Sep 2004 05:04:18 +0000 (05:04 +0000)
Originally committed as revision 3491 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavcodec/dv.c

index 8e359e3..ae50315 100644 (file)
@@ -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];