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>
Sun, 5 Jun 2016 00:08:54 +0000 (02:08 +0200)
commit39c0b22df42088cf4fb1ceb2447291c224a5c7ed
tree9672e96bc400fbf29b5a0b4d81c7673adeaf4ffa
parentbb3388fd60e55db0b162dc78409ae495cbc6b64f
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>
libavcodec/mpegvideo.c