Commit 7dc9ed11 authored by Mike Melanson's avatar Mike Melanson

clean up some warnings and dead code

Originally committed as revision 4288 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 84a96d6a
...@@ -852,9 +852,9 @@ static void init_frame(Vp3DecodeContext *s, GetBitContext *gb) ...@@ -852,9 +852,9 @@ static void init_frame(Vp3DecodeContext *s, GetBitContext *gb)
s->coded_fragment_list_index = 0; s->coded_fragment_list_index = 0;
for (i = 0; i < s->fragment_count; i++) { for (i = 0; i < s->fragment_count; i++) {
s->all_fragments[i].coeff_count = 0; s->all_fragments[i].coeff_count = 0;
s->all_fragments[i].motion_x = 0xbeef; s->all_fragments[i].motion_x = 127;
s->all_fragments[i].motion_y = 0xbeef; s->all_fragments[i].motion_y = 127;
s->all_fragments[i].next_coeff= NULL; s->all_fragments[i].next_coeff= NULL;
s->coeffs[i].index= s->coeffs[i].index=
s->coeffs[i].coeff=0; s->coeffs[i].coeff=0;
s->coeffs[i].next= NULL; s->coeffs[i].next= NULL;
...@@ -2153,7 +2153,7 @@ static void render_fragments(Vp3DecodeContext *s, ...@@ -2153,7 +2153,7 @@ static void render_fragments(Vp3DecodeContext *s,
int height, int height,
int plane /* 0 = Y, 1 = U, 2 = V */) int plane /* 0 = Y, 1 = U, 2 = V */)
{ {
int x, y, j; int x, y;
int m, n; int m, n;
int i = first_fragment; int i = first_fragment;
int16_t *dequantizer; int16_t *dequantizer;
...@@ -2238,13 +2238,12 @@ static void render_fragments(Vp3DecodeContext *s, ...@@ -2238,13 +2238,12 @@ static void render_fragments(Vp3DecodeContext *s,
src_x= (motion_x>>1) + x; src_x= (motion_x>>1) + x;
src_y= (motion_y>>1) + y; src_y= (motion_y>>1) + y;
if ((motion_x == 0xbeef) || (motion_y == 0xbeef)) if ((motion_x == 127) || (motion_y == 127))
av_log(s->avctx, AV_LOG_ERROR, " help! got beefy vector! (%X, %X)\n", motion_x, motion_y); av_log(s->avctx, AV_LOG_ERROR, " help! got invalid motion vector! (%X, %X)\n", motion_x, motion_y);
motion_halfpel_index = motion_x & 0x01; motion_halfpel_index = motion_x & 0x01;
motion_source += (motion_x >> 1); motion_source += (motion_x >> 1);
// motion_y = -motion_y;
motion_halfpel_index |= (motion_y & 0x01) << 1; motion_halfpel_index |= (motion_y & 0x01) << 1;
motion_source += ((motion_y >> 1) * stride); motion_source += ((motion_y >> 1) * stride);
......
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