summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZdenek Kabelac <kabi@informatics.muni.cz>2003-01-06 18:09:27 +0000
committerZdenek Kabelac <kabi@informatics.muni.cz>2003-01-06 18:09:27 +0000
commit87fb268fdcc548d5eeab047338bab515fc6872b1 (patch)
treecd7121f0ef3a989ae55473bbd531d9e2aa9a63da
parent628d601b56a8057ea0963878b59ba12ba223a38f (diff)
* avoid usage of next/last buffer after flush
(but there still something wrong when the first frame isn't keyframe) Originally committed as revision 1403 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavcodec/utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/utils.c b/libavcodec/utils.c
index d593a0de78..162d194fc7 100644
--- a/libavcodec/utils.c
+++ b/libavcodec/utils.c
@@ -677,7 +677,8 @@ void avcodec_flush_buffers(AVCodecContext *avctx)
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