ffv1: use the AVFrame API properly.