diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-04-09 21:19:25 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-04-09 21:19:25 +0000 |
commit | cc0241283bd591dad6e6aeb1c4150c68efb8db89 (patch) | |
tree | 39d243f70b4e16fbebc3ece1414e56aff51af7be /libavcodec/snow.c | |
parent | 38fd076c213057dedc1dc3f74b6ba1fc9c4c6ab3 (diff) | |
download | ffmpeg-cc0241283bd591dad6e6aeb1c4150c68efb8db89.tar.gz |
Make sure the next used frame is released so get_buffer() wont fail.
Originally committed as revision 18399 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/snow.c')
-rw-r--r-- | libavcodec/snow.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/snow.c b/libavcodec/snow.c index b919ef306a..49b7ff2563 100644 --- a/libavcodec/snow.c +++ b/libavcodec/snow.c @@ -4146,6 +4146,8 @@ static int frame_start(SnowContext *s){ s->dsp.draw_edges(s->current_picture.data[2], s->current_picture.linesize[2], w>>1, h>>1, EDGE_WIDTH/2); } + release_buffer(s->avctx); + tmp= s->last_picture[s->max_ref_frames-1]; memmove(s->last_picture+1, s->last_picture, (s->max_ref_frames-1)*sizeof(AVFrame)); memmove(s->halfpel_plane+1, s->halfpel_plane, (s->max_ref_frames-1)*sizeof(void*)*4*4); |