mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
h264: accept rbsp_trailing longer than 1 byte
Originally committed as revision 5467 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
a7b286e89c
commit
c4da83fb0f
@ -7973,7 +7973,8 @@ static int decode_nal_units(H264Context *h, uint8_t *buf, int buf_size){
|
|||||||
}
|
}
|
||||||
|
|
||||||
ptr= decode_nal(h, buf + buf_index, &dst_length, &consumed, h->is_avc ? nalsize : buf_size - buf_index);
|
ptr= decode_nal(h, buf + buf_index, &dst_length, &consumed, h->is_avc ? nalsize : buf_size - buf_index);
|
||||||
if(ptr[dst_length - 1] == 0) dst_length--;
|
while(ptr[dst_length - 1] == 0 && dst_length > 1)
|
||||||
|
dst_length--;
|
||||||
bit_length= 8*dst_length - decode_rbsp_trailing(ptr + dst_length - 1);
|
bit_length= 8*dst_length - decode_rbsp_trailing(ptr + dst_length - 1);
|
||||||
|
|
||||||
if(s->avctx->debug&FF_DEBUG_STARTCODE){
|
if(s->avctx->debug&FF_DEBUG_STARTCODE){
|
||||||
|
Loading…
Reference in New Issue
Block a user