Commit 8d86cf4c authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit 'feec9349'

* commit 'feec9349':
  mpegvideo: unref cur/next/prev frames when flushing
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents c2a0833c feec9349
......@@ -3074,6 +3074,10 @@ void ff_mpeg_flush(AVCodecContext *avctx){
ff_mpeg_unref_picture(s, &s->picture[i]);
s->current_picture_ptr = s->last_picture_ptr = s->next_picture_ptr = NULL;
ff_mpeg_unref_picture(s, &s->current_picture);
ff_mpeg_unref_picture(s, &s->last_picture);
ff_mpeg_unref_picture(s, &s->next_picture);
s->mb_x= s->mb_y= 0;
s->closed_gop= 0;
......
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