Commit 36020678 authored by michaelni's avatar michaelni

clear bitstream buffers in AVCodec.flush()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2101 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 91d8e967
......@@ -3095,6 +3095,13 @@ void ff_mpeg_flush(AVCodecContext *avctx){
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
......
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