comparison h263.c @ 9458:a15a08c1ce8b libavcodec

Remove useless assignment from h263_pred_dc() found by the clang static analyzer.
author michael
date Fri, 17 Apr 2009 12:57:47 +0000
parents 932543edc1d2
children 9dcb191f1df3
comparison
equal deleted inserted replaced
9457:6fe0b0ff991a 9458:a15a08c1ce8b
1578 /* No prediction outside GOB boundary */ 1578 /* No prediction outside GOB boundary */
1579 if(s->first_slice_line && n!=3){ 1579 if(s->first_slice_line && n!=3){
1580 if(n!=2) c= 1024; 1580 if(n!=2) c= 1024;
1581 if(n!=1 && s->mb_x == s->resync_mb_x) a= 1024; 1581 if(n!=1 && s->mb_x == s->resync_mb_x) a= 1024;
1582 } 1582 }
1583 pred_dc = 1024;
1584 /* just DC prediction */ 1583 /* just DC prediction */
1585 if (a != 1024 && c != 1024) 1584 if (a != 1024 && c != 1024)
1586 pred_dc = (a + c) >> 1; 1585 pred_dc = (a + c) >> 1;
1587 else if (a != 1024) 1586 else if (a != 1024)
1588 pred_dc = a; 1587 pred_dc = a;