Revision 5bd12d12

View differences:

libavcodec/mpeg12.c
855 855
                if (cbp & (1 << (5 - i))) {
856 856
                    if (mpeg2_decode_block_intra(s, block[i], i) < 0)
857 857
                        return -1;
858
                } else {
859
                    s->block_last_index[i] = -1;
858 860
                }
859 861
            }
860 862
        } else {
......
862 864
                if (cbp & (1 << (5 - i))) {
863 865
                    if (mpeg2_decode_block_non_intra(s, block[i], i) < 0)
864 866
                        return -1;
867
                } else {
868
                    s->block_last_index[i] = -1;
865 869
                }
866 870
            }
867 871
        }
......
870 874
            if (cbp & (1 << (5 - i))) {
871 875
                if (mpeg1_decode_block(s, block[i], i) < 0)
872 876
                    return -1;
877
            } else {
878
                s->block_last_index[i] = -1;
873 879
            }
874 880
        }
875 881
    }

Also available in: Unified diff