Commit 21e19131 authored by Jeff Muizelaar's avatar Jeff Muizelaar Committed by Roman Shaposhnik

* simplification patch by Jeffrey Ryan Muizelaar

Originally committed as revision 3491 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 457c649a
...@@ -394,8 +394,7 @@ static inline void dv_decode_video_segment(DVVideoContext *s, ...@@ -394,8 +394,7 @@ static inline void dv_decode_video_segment(DVVideoContext *s,
init_get_bits(&gb, buf_ptr, last_index); init_get_bits(&gb, buf_ptr, last_index);
/* get the dc */ /* get the dc */
dc = get_bits(&gb, 9); dc = get_sbits(&gb, 9);
dc = (dc << (32 - 9)) >> (32 - 9);
dct_mode = get_bits1(&gb); dct_mode = get_bits1(&gb);
mb->dct_mode = dct_mode; mb->dct_mode = dct_mode;
mb->scan_table = s->dv_zigzag[dct_mode]; mb->scan_table = s->dv_zigzag[dct_mode];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment