projects
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be2b927
)
ffmpeg: assert against creation of cycles in the pools linked list.
author
Michael Niedermayer
<michaelni@gmx.at>
Sun, 22 Apr 2012 18:07:04 +0000
(20:07 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sun, 22 Apr 2012 18:07:04 +0000
(20:07 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffmpeg.c
patch
|
blob
|
history
diff --git
a/ffmpeg.c
b/ffmpeg.c
index
dc318d1
..
567edd3
100644
(file)
--- a/
ffmpeg.c
+++ b/
ffmpeg.c
@@
-599,6
+599,9
@@
static void unref_buffer(InputStream *ist, FrameBuffer *buf)
av_assert0(buf->refcount > 0);
buf->refcount--;
if (!buf->refcount) {
+ FrameBuffer *tmp;
+ for(tmp= ist->buffer_pool; tmp; tmp= tmp->next)
+ av_assert1(tmp != buf);
buf->next = ist->buffer_pool;
ist->buffer_pool = buf;
}