Commit 1724123c authored by Michael Niedermayer's avatar Michael Niedermayer

Merge commit '3eae9b03'

* commit '3eae9b03':
  mpegvideo: unref buffers in ff_mpeg_unref_picture on frame size changes
Merged-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parents c54a1565 3eae9b03
......@@ -448,6 +448,9 @@ void ff_mpeg_unref_picture(MpegEncContext *s, Picture *pic)
av_buffer_unref(&pic->hwaccel_priv_buf);
if (pic->needs_realloc)
free_picture_tables(pic);
memset((uint8_t*)pic + off, 0, sizeof(*pic) - off);
}
......
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