Commit 42e0ea67 authored by rtognimp's avatar rtognimp

Fix avc1 if there is nore than one nal per mov frame


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3785 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4155b353
...@@ -5862,7 +5862,7 @@ static int decode_nal_units(H264Context *h, uint8_t *buf, int buf_size){ ...@@ -5862,7 +5862,7 @@ static int decode_nal_units(H264Context *h, uint8_t *buf, int buf_size){
buf_index+=3; buf_index+=3;
} }
ptr= decode_nal(h, buf + buf_index, &dst_length, &consumed, 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--; if(ptr[dst_length - 1] == 0) 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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment