mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
avcodec_flush_buffers() fix
Originally committed as revision 2715 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
40a3105d46
commit
20f155ed80
@ -3585,6 +3585,9 @@ void ff_mpeg_flush(AVCodecContext *avctx){
|
||||
int i;
|
||||
MpegEncContext *s = avctx->priv_data;
|
||||
|
||||
if(s==NULL || s->picture==NULL)
|
||||
return;
|
||||
|
||||
for(i=0; i<MAX_PICTURE_COUNT; i++){
|
||||
if(s->picture[i].data[0] && ( s->picture[i].type == FF_BUFFER_TYPE_INTERNAL
|
||||
|| s->picture[i].type == FF_BUFFER_TYPE_USER))
|
||||
|
Loading…
Reference in New Issue
Block a user