Merge commit 'feec9349d35b3a46d0c6a05e3b23626050b76a77'
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 24 Apr 2013 08:11:23 +0000 (10:11 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 24 Apr 2013 08:11:34 +0000 (10:11 +0200)
* commit 'feec9349d35b3a46d0c6a05e3b23626050b76a77':
  mpegvideo: unref cur/next/prev frames when flushing

Merged-by: Michael Niedermayer <michaelni@gmx.at>
1  2 
libavcodec/mpegvideo.c

@@@ -3074,8 -2358,11 +3074,12 @@@ void ff_mpeg_flush(AVCodecContext *avct
          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;
  
      s->parse_context.state= -1;
      s->parse_context.frame_start_found= 0;