On Tue, May 21, 2013 at 05:50:19PM +0200, Janne Grunau wrote: > ff_mpeg_unref_picture clears the flag indicating that the frame needs to > be reallocated after a frame size change. Since we have now reference > counted buffers we can unref the buffers immediately. > --- > libavcodec/mpegvideo.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c > index b175d32..c9a425a 100644 > --- a/libavcodec/mpegvideo.c > +++ b/libavcodec/mpegvideo.c > @@ -435,6 +435,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); > } > > --
probably OK _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
