mpegvideo: unref buffers in ff_mpeg_unref_picture on frame size changes
authorJanne Grunau <janne-libav@jannau.net>
Tue, 21 May 2013 15:39:27 +0000 (17:39 +0200)
committerJanne Grunau <janne-libav@jannau.net>
Wed, 22 May 2013 13:40:12 +0000 (15:40 +0200)
commit3eae9b030cbbdc263f69834b791624613032d548
tree93f8912c117398acb0335dd471c0fd5172c9ab87
parent5b2b0b912dbcd6ee8b598254b083c58d4847ef02
mpegvideo: unref buffers in ff_mpeg_unref_picture on frame size changes

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