mpegvideo: fix invalid picture unreferencing.