diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2013-04-20 13:33:56 +0400 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2013-04-23 21:11:59 +0400 |
commit | feec9349d35b3a46d0c6a05e3b23626050b76a77 (patch) | |
tree | 6945f7f90c80132c2b847fdcadfddf6f8d3687f4 /libavcodec | |
parent | 6a8561dbd7c078eb75985f7011ad1ad3fda9e223 (diff) |
mpegvideo: unref cur/next/prev frames when flushing
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpegvideo.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index 87605fa4fc..f6ec62aad6 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -2358,6 +2358,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->parse_context.state= -1; |