sunrastenc: use the AVFrame API properly.