projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38fd076
)
Make sure the next used frame is released so get_buffer() wont fail.
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 9 Apr 2009 21:19:25 +0000
(21:19 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 9 Apr 2009 21:19:25 +0000
(21:19 +0000)
Originally committed as revision 18399 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/snow.c
patch
|
blob
|
history
diff --git
a/libavcodec/snow.c
b/libavcodec/snow.c
index
b919ef3
..
49b7ff2
100644
(file)
--- 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);