提交 f31ecffb 编写于 作者: R Roberto Togni

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

Originally committed as revision 3785 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 13160c07
......@@ -5862,7 +5862,7 @@ static int decode_nal_units(H264Context *h, uint8_t *buf, int buf_size){
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--;
bit_length= 8*dst_length - decode_rbsp_trailing(ptr + dst_length - 1);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册