projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
13160c0
)
Fix avc1 if there is nore than one nal per mov frame
author
Roberto Togni
<r_togni@tiscali.it>
Thu, 30 Dec 2004 18:05:54 +0000
(18:05 +0000)
committer
Roberto Togni
<r_togni@tiscali.it>
Thu, 30 Dec 2004 18:05:54 +0000
(18:05 +0000)
Originally committed as revision 3785 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h264.c
patch
|
blob
|
history
diff --git
a/libavcodec/h264.c
b/libavcodec/h264.c
index
c07ca24
..
8a383e2
100644
(file)
--- 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);