avcodec/mpegvideo: Deallocate last/next picture earlier
authorMichael Niedermayer <michael@niedermayer.cc>
Sat, 4 Jun 2016 23:46:18 +0000 (01:46 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 15 Aug 2016 16:54:34 +0000 (18:54 +0200)
commitffb503c9a14c837d6f73a609129c4fca4836b51d
treeaf46ea2b9510369539a110b17733a69ec4a84661
parent2bbbd3e50a8f4ceb916c6ab64c5eb8630b8981b3
avcodec/mpegvideo: Deallocate last/next picture earlier

Fixes regression with mplayers direct rendering and reduces buffer count
pressure in some cases

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit 39c0b22df42088cf4fb1ceb2447291c224a5c7ed)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpegvideo.c