mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-11-14 21:58:33 +03:00
avcodec_flush_buffers() fix
Originally committed as revision 2715 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user