Revision c4da83fb

View differences:

libavcodec/h264.c
7973 7973
      }
7974 7974

  
7975 7975
        ptr= decode_nal(h, buf + buf_index, &dst_length, &consumed, h->is_avc ? nalsize : buf_size - buf_index);
7976
        if(ptr[dst_length - 1] == 0) dst_length--;
7976
        while(ptr[dst_length - 1] == 0 && dst_length > 1)
7977
            dst_length--;
7977 7978
        bit_length= 8*dst_length - decode_rbsp_trailing(ptr + dst_length - 1);
7978 7979

  
7979 7980
        if(s->avctx->debug&FF_DEBUG_STARTCODE){

Also available in: Unified diff