Commit c2394854 authored by Michael Niedermayer's avatar Michael Niedermayer

Remove useless assignment from h263_pred_dc() found by the clang static analyzer.

Originally committed as revision 18547 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 6e21a5b1
...@@ -1580,7 +1580,6 @@ static int h263_pred_dc(MpegEncContext * s, int n, int16_t **dc_val_ptr) ...@@ -1580,7 +1580,6 @@ static int h263_pred_dc(MpegEncContext * s, int n, int16_t **dc_val_ptr)
if(n!=2) c= 1024; if(n!=2) c= 1024;
if(n!=1 && s->mb_x == s->resync_mb_x) a= 1024; if(n!=1 && s->mb_x == s->resync_mb_x) a= 1024;
} }
pred_dc = 1024;
/* just DC prediction */ /* just DC prediction */
if (a != 1024 && c != 1024) if (a != 1024 && c != 1024)
pred_dc = (a + c) >> 1; pred_dc = (a + c) >> 1;
......
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