[FFmpeg-cvslog] r18399 - trunk/libavcodec/snow.c

michael subversion
Thu Apr 9 23:19:25 CEST 2009


Author: michael
Date: Thu Apr  9 23:19:25 2009
New Revision: 18399

Log:
Make sure the next used frame is released so get_buffer() wont fail.

Modified:
   trunk/libavcodec/snow.c

Modified: trunk/libavcodec/snow.c
==============================================================================
--- trunk/libavcodec/snow.c	Thu Apr  9 23:17:53 2009	(r18398)
+++ trunk/libavcodec/snow.c	Thu Apr  9 23:19:25 2009	(r18399)
@@ -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);



More information about the ffmpeg-cvslog mailing list