OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6847e61
)
adding assert to protect delayed_pic
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 23 Jan 2007 12:45:57 +0000
(12:45 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 23 Jan 2007 12:45:57 +0000
(12:45 +0000)
Originally committed as revision 7661 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/h264.c
patch
|
blob
|
history
diff --git
a/libavcodec/h264.c
b/libavcodec/h264.c
index
00c3573
..
5a56214
100644
(file)
--- a/
libavcodec/h264.c
+++ b/
libavcodec/h264.c
@@
-8341,6
+8341,9
@@
static int decode_frame(AVCodecContext *avctx,
pics = 0;
while(h->delayed_pic[pics]) pics++;
+
+ assert(pics+1 < sizeof(h->delayed_pic) / sizeof(h->delayed_pic[0]));
+
h->delayed_pic[pics++] = cur;
if(cur->reference == 0)
cur->reference = 1;