mpegvideo: claim ownership of referenced pictures
authorJanne Grunau <janne-libav@jannau.net>
Tue, 10 Jan 2012 14:08:20 +0000 (15:08 +0100)
committerJanne Grunau <janne-libav@jannau.net>
Tue, 10 Jan 2012 21:51:56 +0000 (22:51 +0100)
commit3ab770001817e0f52114a9876819f07fcd8ed93a
tree6fc11dd2cdc5f692a6eb6631cd79cc0c17a85103
parent17ce52912f59a74ecc265e062578fb1181456e18
mpegvideo: claim ownership of referenced pictures

Under certain conditions pictures could be released before they were
returned with frame-threading. Broken mv computation in the upcoming
rv34 frame-threading patch was caused by this.

To prevent contexts from running out of available pictures the loop
releasing "unused" pictures has to be run for B frames too.
libavcodec/mpegvideo.c