changeset 9376:e376facae584 libavcodec

Make sure the next used frame is released so get_buffer() wont fail.
author michael
date Thu, 09 Apr 2009 21:19:25 +0000
parents 2f04b571d69b
children e1962586d2db
files snow.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/snow.c	Thu Apr 09 21:17:53 2009 +0000
+++ b/snow.c	Thu Apr 09 21:19:25 2009 +0000
@@ -4146,6 +4146,8 @@
         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);