OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c13e490
)
ff_snow_common_end: assert() that the last buffer freed differs from the current.
author
Michael Niedermayer
<michaelni@gmx.at>
Fri, 22 Jun 2012 21:50:57 +0000
(23:50 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Fri, 22 Jun 2012 21:53:24 +0000
(23:53 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/snow.c
patch
|
blob
|
history
diff --git
a/libavcodec/snow.c
b/libavcodec/snow.c
index
2021658
..
4e7bc8c
100644
(file)
--- a/
libavcodec/snow.c
+++ b/
libavcodec/snow.c
@@
-639,8
+639,10
@@
av_cold void ff_snow_common_end(SnowContext *s)
for(i=0; i<MAX_REF_FRAMES; i++){
av_freep(&s->ref_mvs[i]);
av_freep(&s->ref_scores[i]);
- if(s->last_picture[i].data[0])
+ if(s->last_picture[i].data[0]) {
+ av_assert0(s->last_picture[i].data[0] != s->current_picture.data[0]);
s->avctx->release_buffer(s->avctx, &s->last_picture[i]);
+ }
}
for(plane_index=0; plane_index<3; plane_index++){