Revision ad1ea1f1

View differences:

libavcodec/h264.c
8149 8149
        }
8150 8150
        while(ptr[dst_length - 1] == 0 && dst_length > 0)
8151 8151
            dst_length--;
8152
        bit_length= 8*dst_length - decode_rbsp_trailing(h, ptr + dst_length - 1);
8152
        bit_length= !dst_length ? 0 : (8*dst_length - decode_rbsp_trailing(h, ptr + dst_length - 1));
8153 8153

  
8154 8154
        if(s->avctx->debug&FF_DEBUG_STARTCODE){
8155 8155
            av_log(h->s.avctx, AV_LOG_DEBUG, "NAL %d at %d/%d length %d\n", h->nal_unit_type, buf_index, buf_size, dst_length);

Also available in: Unified diff