diff options
author | Roberto Togni <r_togni@tiscali.it> | 2004-12-30 18:05:54 +0000 |
---|---|---|
committer | Roberto Togni <r_togni@tiscali.it> | 2004-12-30 18:05:54 +0000 |
commit | f31ecffb4f5695fc9a19bed012dd14fc01a3d808 (patch) | |
tree | fbe989ec3300cafcac9fdee2e6c690db1f433a08 | |
parent | 13160c0708a9300a6ec4ce208767723ce5e04820 (diff) | |
download | ffmpeg-f31ecffb4f5695fc9a19bed012dd14fc01a3d808.tar.gz |
Fix avc1 if there is nore than one nal per mov frame
Originally committed as revision 3785 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/h264.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/h264.c b/libavcodec/h264.c index c07ca2469a..8a383e2dcd 100644 --- a/libavcodec/h264.c +++ b/libavcodec/h264.c @@ -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); |