Mercurial > libavcodec.hg
comparison h264.c @ 2401:46898a9fd6dc libavcodec
Fix avc1 if there is nore than one nal per mov frame
author | rtognimp |
---|---|
date | Thu, 30 Dec 2004 18:05:54 +0000 |
parents | 7e360068b653 |
children | f9d4e1eddbc5 |
comparison
equal
deleted
inserted
replaced
2400:17ec73c65748 | 2401:46898a9fd6dc |
---|---|
5860 if(buf_index+3 >= buf_size) break; | 5860 if(buf_index+3 >= buf_size) break; |
5861 | 5861 |
5862 buf_index+=3; | 5862 buf_index+=3; |
5863 } | 5863 } |
5864 | 5864 |
5865 ptr= decode_nal(h, buf + buf_index, &dst_length, &consumed, buf_size - buf_index); | 5865 ptr= decode_nal(h, buf + buf_index, &dst_length, &consumed, h->is_avc ? nalsize : buf_size - buf_index); |
5866 if(ptr[dst_length - 1] == 0) dst_length--; | 5866 if(ptr[dst_length - 1] == 0) dst_length--; |
5867 bit_length= 8*dst_length - decode_rbsp_trailing(ptr + dst_length - 1); | 5867 bit_length= 8*dst_length - decode_rbsp_trailing(ptr + dst_length - 1); |
5868 | 5868 |
5869 if(s->avctx->debug&FF_DEBUG_STARTCODE){ | 5869 if(s->avctx->debug&FF_DEBUG_STARTCODE){ |
5870 av_log(h->s.avctx, AV_LOG_DEBUG, "NAL %d at %d length %d\n", h->nal_unit_type, buf_index, dst_length); | 5870 av_log(h->s.avctx, AV_LOG_DEBUG, "NAL %d at %d length %d\n", h->nal_unit_type, buf_index, dst_length); |