Revision 747db4e3

View differences:

libavcodec/h264.c
872 872
        avctx->ticks_per_frame = 2;
873 873
    }
874 874

  
875
    h->ref_cache[0][scan8[5 ]+1] = h->ref_cache[0][scan8[7 ]+1] = h->ref_cache[0][scan8[13]+1] =
876
    h->ref_cache[1][scan8[5 ]+1] = h->ref_cache[1][scan8[7 ]+1] = h->ref_cache[1][scan8[13]+1] = PART_NOT_AVAILABLE;
877

  
878

  
875 879
    if(avctx->extradata_size > 0 && avctx->extradata && *(char *)avctx->extradata == 1){
876 880
        int i, cnt, nalsize;
877 881
        unsigned char *p = avctx->extradata;
libavcodec/h264.h
1037 1037
                continue;
1038 1038

  
1039 1039
            if(!(mb_type&(MB_TYPE_SKIP|MB_TYPE_DIRECT2))) {
1040
            h->ref_cache[list][scan8[5 ]+1] =
1041
            h->ref_cache[list][scan8[7 ]+1] =
1042
            h->ref_cache[list][scan8[13]+1] =  //FIXME remove past 3 (init somewhere else)
1043 1040
            h->ref_cache[list][scan8[4 ]] =
1044 1041
            h->ref_cache[list][scan8[12]] = PART_NOT_AVAILABLE;
1045 1042
            AV_ZERO32(h->mv_cache [list][scan8[4 ]]);

Also available in: Unified diff