# HG changeset patch # User kabi # Date 1041876567 0 # Node ID 1936a177d48246c51ce68cc428d71ea8c95a4ec9 # Parent c5aef83c6a3fab173b867602296e65fc00949443 * avoid usage of next/last buffer after flush (but there still something wrong when the first frame isn't keyframe) diff -r c5aef83c6a3f -r 1936a177d482 utils.c --- a/utils.c Mon Jan 06 18:06:51 2003 +0000 +++ b/utils.c Mon Jan 06 18:09:27 2003 +0000 @@ -677,7 +677,8 @@ if(s->picture[i].data[0] && ( s->picture[i].type == FF_BUFFER_TYPE_INTERNAL || s->picture[i].type == FF_BUFFER_TYPE_USER)) avctx->release_buffer(avctx, (AVFrame*)&s->picture[i]); - } + } + s->last_picture.data[0] = s->next_picture.data[0] = NULL; break; default: //FIXME