[svn] / branches / release-1_1-branch / xvidcore / src / bitstream / mbcoding.c Repository:
ViewVC logotype

Diff of /branches/release-1_1-branch/xvidcore/src/bitstream/mbcoding.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1776, Wed Jun 27 18:57:42 2007 UTC revision 1778, Thu Jun 28 15:00:11 2007 UTC
# Line 19  Line 19 
19   *  along with this program ; if not, write to the Free Software   *  along with this program ; if not, write to the Free Software
20   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21   *   *
22   * $Id: mbcoding.c,v 1.52.2.1 2007-06-27 18:57:42 Isibaar Exp $   * $Id: mbcoding.c,v 1.52.2.2 2007-06-28 15:00:11 Isibaar Exp $
23   *   *
24   ****************************************************************************/   ****************************************************************************/
25    
# Line 1051  Line 1051 
1051          return (level << 20) >> 20;          return (level << 20) >> 20;
1052    
1053    error:    error:
1054          *run = VLC_ERROR;          *run = 64;
1055          return 0;          return 0;
1056  }  }
1057    
# Line 1068  Line 1068 
1068          do {          do {
1069                  level = get_coeff(bs, &run, &last, 1, 0);                  level = get_coeff(bs, &run, &last, 1, 0);
1070                  coeff += run;                  coeff += run;
1071                  if ((run|coeff)&~63) {                  if (coeff & ~63) {
1072                          DPRINTF(XVID_DEBUG_ERROR,"fatal: invalid run or index");                          DPRINTF(XVID_DEBUG_ERROR,"fatal: invalid run or index");
1073                          break;                          break;
1074                  }                  }
# Line 1109  Line 1109 
1109          do {          do {
1110                  level = get_coeff(bs, &run, &last, 0, 0);                  level = get_coeff(bs, &run, &last, 0, 0);
1111                  p += run;                  p += run;
1112                  if ((run|p)&~63) {                  if (p & ~63) {
1113                          DPRINTF(XVID_DEBUG_ERROR,"fatal: invalid run or index");                          DPRINTF(XVID_DEBUG_ERROR,"fatal: invalid run or index");
1114                          break;                          break;
1115                  }                  }
# Line 1144  Line 1144 
1144          do {          do {
1145                  level = get_coeff(bs, &run, &last, 0, 0);                  level = get_coeff(bs, &run, &last, 0, 0);
1146                  p += run;                  p += run;
1147                  if ((run|p)&~63) {                  if (p & ~63) {
1148                          DPRINTF(XVID_DEBUG_ERROR,"fatal: invalid run or index");                          DPRINTF(XVID_DEBUG_ERROR,"fatal: invalid run or index");
1149                          break;                          break;
1150                  }                  }

Legend:
Removed from v.1776  
changed lines
  Added in v.1778

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4