mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
clear bitstream buffers in AVCodec.flush()
Originally committed as revision 2101 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
6a686d58b4
commit
769fc4660c
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user