diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-04-24 10:11:23 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-04-24 10:11:34 +0200 |
commit | 8d86cf4cfa2ef5fc75c3488a95eff1b733457def (patch) | |
tree | 93e46ddfc8a622d2fb54b3f017e8f170f76ac684 /libavcodec | |
parent | c2a0833c09629176c3b1aee520c5575ff4835f45 (diff) | |
parent | feec9349d35b3a46d0c6a05e3b23626050b76a77 (diff) | |
download | ffmpeg-streaming-8d86cf4cfa2ef5fc75c3488a95eff1b733457def.zip ffmpeg-streaming-8d86cf4cfa2ef5fc75c3488a95eff1b733457def.tar.gz |
Merge commit 'feec9349d35b3a46d0c6a05e3b23626050b76a77'
* commit 'feec9349d35b3a46d0c6a05e3b23626050b76a77':
mpegvideo: unref cur/next/prev frames when flushing
Merged-by: Michael Niedermayer <michaelni@gmx.at>
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 3aa35d5..69b10bb 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -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; |