Mercurial > libavcodec.hg
changeset 1395:b2ac20ff1458 libavcodec
clear bitstream buffers in AVCodec.flush()
author | michaelni |
---|---|
date | Sat, 02 Aug 2003 22:01:02 +0000 |
parents | 951a4448c05a |
children | e380ac39024a |
files | mpegvideo.c |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegvideo.c Fri Aug 01 11:01:05 2003 +0000 +++ b/mpegvideo.c Sat Aug 02 22:01:02 2003 +0000 @@ -3095,6 +3095,13 @@ avctx->release_buffer(avctx, (AVFrame*)&s->picture[i]); } s->last_picture_ptr = s->next_picture_ptr = NULL; + + s->parse_context.state= -1; + s->parse_context.frame_start_found= 0; + s->parse_context.overread= 0; + s->parse_context.overread_index= 0; + s->parse_context.index= 0; + s->parse_context.last_index= 0; } #ifdef CONFIG_ENCODERS