diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-06-22 23:50:57 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-06-22 23:53:24 +0200 |
commit | 69971410f9d9fdf5bc6e7cbe73d917155ea442ce (patch) | |
tree | a3c838b92302b7912de23191036552293cbc339d /libavcodec/snow.c | |
parent | c13e490dce1a66d79e1f053d8a38fb9b2eb53267 (diff) | |
download | ffmpeg-69971410f9d9fdf5bc6e7cbe73d917155ea442ce.tar.gz |
ff_snow_common_end: assert() that the last buffer freed differs from the current.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/snow.c')
-rw-r--r-- | libavcodec/snow.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/snow.c b/libavcodec/snow.c index 2021658d4c..4e7bc8c443 100644 --- 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++){ |