mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-27 09:11:17 +00:00
Merge commit 'feec9349d35b3a46d0c6a05e3b23626050b76a77'
* commit 'feec9349d35b3a46d0c6a05e3b23626050b76a77': mpegvideo: unref cur/next/prev frames when flushing Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
8d86cf4cfa
@ -3074,6 +3074,10 @@ void ff_mpeg_flush(AVCodecContext *avctx){
|
|||||||
ff_mpeg_unref_picture(s, &s->picture[i]);
|
ff_mpeg_unref_picture(s, &s->picture[i]);
|
||||||
s->current_picture_ptr = s->last_picture_ptr = s->next_picture_ptr = NULL;
|
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->mb_x= s->mb_y= 0;
|
||||||
s->closed_gop= 0;
|
s->closed_gop= 0;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user