Revision d676478c

View differences:

libavcodec/dv.c
746 746
                    b->bit_size[a] = 1; // 4 areas 4 bits for EOB :)
747 747
                    b->area_q[a]++;
748 748
                    prev= b->prev[a];
749
                    assert(b->next[prev] >= mb_area_start[a+1] || b->mb[prev]);
749 750
                    for (k= b->next[prev] ; k<mb_area_start[a+1]; k= b->next[k]) {
750 751
                       b->mb[k] >>= 1;
751 752
                       if (b->mb[k]) {
......
759 760
                                assert(b->mb[b->next[k]]);
760 761
                                b->bit_size[a2] += dv_rl2vlc_size(b->next[k] - prev - 1, b->mb[b->next[k]])
761 762
                                                  -dv_rl2vlc_size(b->next[k] -    k - 1, b->mb[b->next[k]]);
762
                                for(; (b->prev[a2]==k) && (a2<4); a2++)
763
                                        b->prev[a2] = prev;
763
                                assert(b->prev[a2]==k && (a2+1 >= 4 || b->prev[a2+1]!=k));
764
                                b->prev[a2] = prev;
764 765
                           }
765 766
                           b->next[prev] = b->next[k];
766 767
                       }

Also available in: Unified diff