Commit b73f832f authored by michael's avatar michael

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18399 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7bab4db5
...@@ -4146,6 +4146,8 @@ static int frame_start(SnowContext *s){ ...@@ -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); 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]; 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->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); memmove(s->halfpel_plane+1, s->halfpel_plane, (s->max_ref_frames-1)*sizeof(void*)*4*4);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment